diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2008-10-16 19:44:03 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:38 -0400 |
commit | 8216bfe2518c25f16a60485636e477c9a3b795d5 (patch) | |
tree | a1b003a80920d940e6d8de175015da3384d197b1 /drivers/net/wireless/hostap | |
parent | 50fb2e4572141770380f5919793c6e575fa3474b (diff) |
hostap: Fix sparse warnings
A compilation with the command "make C=2 CF="-D__CHECK_ENDIAN__" \
drivers/net/wireless/hostap/"
yields the following warnings:
CHECK drivers/net/wireless/hostap/hostap_info.c
drivers/net/wireless/hostap/hostap_info.c:156:43: warning: incorrect type in
argument 2 (different signedness)
drivers/net/wireless/hostap/hostap_info.c:156:43: expected unsigned long
volatile *addr
drivers/net/wireless/hostap/hostap_info.c:156:43: got long *<noident>
drivers/net/wireless/hostap/hostap_info.c:294:44: warning: incorrect type in
argument 2 (different signedness)
drivers/net/wireless/hostap/hostap_info.c:294:44: expected unsigned long
volatile *addr
drivers/net/wireless/hostap/hostap_info.c:294:44: got long *<noident>
drivers/net/wireless/hostap/hostap_info.c:487:12: warning: incorrect type in
argument 2 (different signedness)
drivers/net/wireless/hostap/hostap_info.c:487:12: expected unsigned long
volatile *addr
drivers/net/wireless/hostap/hostap_info.c:487:12: got long *<noident>
drivers/net/wireless/hostap/hostap_info.c:491:12: warning: incorrect type in
argument 2 (different signedness)
drivers/net/wireless/hostap/hostap_info.c:491:12: expected unsigned long
volatile *addr
drivers/net/wireless/hostap/hostap_info.c:491:12: got long *<noident>
The warnings are fixed with the following compile-tested fix:
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_wlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_wlan.h b/drivers/net/wireless/hostap/hostap_wlan.h index ffdf4876121..8431030b0e1 100644 --- a/drivers/net/wireless/hostap/hostap_wlan.h +++ b/drivers/net/wireless/hostap/hostap_wlan.h | |||
@@ -822,7 +822,7 @@ struct local_info { | |||
822 | int last_scan_results_count; | 822 | int last_scan_results_count; |
823 | enum { PRISM2_SCAN, PRISM2_HOSTSCAN } last_scan_type; | 823 | enum { PRISM2_SCAN, PRISM2_HOSTSCAN } last_scan_type; |
824 | struct work_struct info_queue; | 824 | struct work_struct info_queue; |
825 | long pending_info; /* bit field of pending info_queue items */ | 825 | unsigned long pending_info; /* bit field of pending info_queue items */ |
826 | #define PRISM2_INFO_PENDING_LINKSTATUS 0 | 826 | #define PRISM2_INFO_PENDING_LINKSTATUS 0 |
827 | #define PRISM2_INFO_PENDING_SCANRESULTS 1 | 827 | #define PRISM2_INFO_PENDING_SCANRESULTS 1 |
828 | int prev_link_status; /* previous received LinkStatus info */ | 828 | int prev_link_status; /* previous received LinkStatus info */ |