From: Larry Finger Date: Fri, 1 Feb 2013 16:40:22 +0000 (-0600) Subject: rtlwifi: Fix many compile warnings when using W=1 X-Git-Tag: MMI-PSA29.97-13-9~15013^2~31^2^2~86 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d221ad1a8aa281aec505441602dd9f315d31cfb9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Larry Finger Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index 21a5f4f4a135..f13258a8d995 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h @@ -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 */