Search Linux Wireless

[PATCH] rtlwifi: Fix warning in debug.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since commit e82912dc, compilation of rtlwifi has resulted in the following
warning:

In file included from drivers/net/wireless/rtlwifi/debug.c:31:0:
drivers/net/wireless/rtlwifi/wifi.h:33:0: warning: "pr_fmt" redefined [enabled by default]
include/linux/printk.h:152:0: note: this is the location of the previous definition

The fix is to ensure that wifi.h s included before any header files that pull in
printk.h.

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---

John,

This problem only occurs in wireless-testing, and not in mainline. Commit d273bb20
starts the problem.

Larry
---

 drivers/net/wireless/rtlwifi/debug.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/rtlwifi/debug.c b/drivers/net/wireless/rtlwifi/debug.c
index 1d9b456..bdda9b2 100644
--- a/drivers/net/wireless/rtlwifi/debug.c
+++ b/drivers/net/wireless/rtlwifi/debug.c
@@ -26,8 +26,6 @@
  * Larry Finger <Larry.Finger@xxxxxxxxxxxx>
  *****************************************************************************/
 
-#include <linux/moduleparam.h>
-
 #include "wifi.h"
 
 #include <linux/moduleparam.h>
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux