Skip to content

Commit

Permalink
rtlwifi: Fix many compile warnings when using W=1
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
lwfinger authored and linvjw committed Feb 1, 2013
1 parent c480601 commit d221ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtlwifi/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d221ad1

Please sign in to comment.