rtlwifi: Fix many compile warnings when using W=1
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 1 Feb 2013 16:40:22 +0000 (10:40 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:25 +0000 (14:27 -0500)
Many warnings like the following arise from a build with W=1 on the
make line:

warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Changing the overall debug level storage from unsigned to signed fixes these.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/wifi.h

index 21a5f4f4a13509da671834fe196d0fca19fa2b9f..f13258a8d9956be1be84eae9eecbcec3f103fb94 100644 (file)
@@ -1702,7 +1702,7 @@ struct rtl_works {
 
 struct rtl_debug {
        u32 dbgp_type[DBGP_TYPE_MAX];
-       u32 global_debuglevel;
+       int global_debuglevel;
        u64 global_debugcomponents;
 
        /* add for proc debug */