Skip to contentSkip to conversation

staging: rtl8187se: Fix warning symbol should be static

PATCH In review Jonas Hahnfeld 3 participants 4 messages Apr 6, 2014 – Apr 7, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8187se: Fix warning symbol should be static

This patch solves some sparse warnings about "symbol [...] was not declared. Should it be static?" by including the correct header files.

---
Tested by compile only

 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c      | 1 +
 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_ccmp.c | 1 +
 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_wep.c  | 1 +
 drivers/staging/rtl8187se/r8180_wx.c                       | 1 +
 4 files changed, 4 insertions(+)
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c +1 -0
index 101f0c0..03462c3 100644
@@ -19,6 +19,7 @@
 #include <linux/string.h>
 #include <linux/errno.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 MODULE_AUTHOR("Jouni Malinen");
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_ccmp.c +1 -0
index 4fe2538..7eae3d9 100644
@@ -21,6 +21,7 @@
 #include <linux/string.h>
 #include <linux/wireless.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 #include <linux/crypto.h>
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_wep.c +1 -0
index f253672..288f86c 100644
@@ -17,6 +17,7 @@
 #include <linux/skbuff.h>
 #include <linux/string.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 #include <linux/crypto.h>
drivers/staging/rtl8187se/r8180_wx.c +1 -0
index b552491..57bf01f 100644
@@ -20,6 +20,7 @@
 
 #include "r8180.h"
 #include "r8180_hw.h"
+#include "r8180_wx.h"
 
 #include <net/iw_handler.h>
 #include "ieee80211/dot11d.h"
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jonas Hahnfeld

This patch solves some sparse warnings about "symbol [...] was not declared. Should it be static?" by including the correct header files.

Quoted 59 lines

Tested by compile only

 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c      | 1 +
 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_ccmp.c | 1 +
 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_wep.c  | 1 +
 drivers/staging/rtl8187se/r8180_wx.c                       | 1 +
 4 files changed, 4 insertions(+)
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c +1 -0
index 101f0c0..03462c3 100644
@@ -19,6 +19,7 @@
 #include <linux/string.h>
 #include <linux/errno.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 MODULE_AUTHOR("Jouni Malinen");
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_ccmp.c +1 -0
index 4fe2538..7eae3d9 100644
@@ -21,6 +21,7 @@
 #include <linux/string.h>
 #include <linux/wireless.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 #include <linux/crypto.h>
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_wep.c +1 -0
index f253672..288f86c 100644
@@ -17,6 +17,7 @@
 #include <linux/skbuff.h>
 #include <linux/string.h>
 
+#include "../r8180.h"
 #include "ieee80211.h"
 
 #include <linux/crypto.h>
drivers/staging/rtl8187se/r8180_wx.c +1 -0
index b552491..57bf01f 100644
@@ -20,6 +20,7 @@
 
 #include "r8180.h"
 #include "r8180_hw.h"
+#include "r8180_wx.h"
 
 #include <net/iw_handler.h>
 #include "ieee80211/dot11d.h"
Signature · 1 line
1.9.1
#2 lore raw

Hi

Quoted 7 lines · Josh Triplett
Quoted 4 lines · Jonas Hahnfeld

This patch solves some sparse warnings about "symbol [...] was not declared. Should it be static?" by including the correct header files.

[...]

Given that that rtl8187se support has already been merged mainline (for 3.15-rc1) into the existing rtl8180 (soon to be renamed to rtl818x) driver, wouldn't it make more sense to remove drivers/staging/rtl8187se/ rather than trying to fixing it?

commit 1eba648f998ef9c31b8cf062754a4a7b4ab9001f

Author: Andrea Merello <[email protected]>
Date:   Wed Mar 26 21:04:23 2014 +0100

rtl8180: enable rtl8187se support

Finally make rtl8187se works (hopefylly).
This patch adds PCI ID for rtl8187, updates copyright notes and updates MODULE_DESCRIPTION.

Regards
Stefan Lippers-Hollmann

#3 lore raw

Am Montag, den 07.04.2014, 01:34 +0000 schrieb Stefan Lippers-Hollmann:

Quoted 27 lines

Hi

Quoted 7 lines · Josh Triplett
Quoted 4 lines · Jonas Hahnfeld

This patch solves some sparse warnings about "symbol [...] was not declared. Should it be static?" by including the correct header files.

[...]

Given that that rtl8187se support has already been merged mainline (for 3.15-rc1) into the existing rtl8180 (soon to be renamed to rtl818x) driver, wouldn't it make more sense to remove drivers/staging/rtl8187se/ rather than trying to fixing it?

commit 1eba648f998ef9c31b8cf062754a4a7b4ab9001f

Author: Andrea Merello <[email protected]>
Date:   Wed Mar 26 21:04:23 2014 +0100

rtl8180: enable rtl8187se support

Finally make rtl8187se works (hopefylly).
This patch adds PCI ID for rtl8187, updates copyright notes and updates MODULE_DESCRIPTION.

Quoted 5 lines

Regards
Stefan Lippers-Hollmann

Yes, probably. Sorry, didn't know that, hadn't looked after this!