Commit d221ad1a authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

rtlwifi: Fix many compile warnings when using W=1

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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c4806014
...@@ -1702,7 +1702,7 @@ struct rtl_works { ...@@ -1702,7 +1702,7 @@ struct rtl_works {
struct rtl_debug { struct rtl_debug {
u32 dbgp_type[DBGP_TYPE_MAX]; u32 dbgp_type[DBGP_TYPE_MAX];
u32 global_debuglevel; int global_debuglevel;
u64 global_debugcomponents; u64 global_debugcomponents;
/* add for proc debug */ /* add for proc debug */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment