]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: rtl8187se: Fix Sparse Warnings
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Sun, 10 Nov 2013 21:16:58 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Nov 2013 23:37:22 +0000 (15:37 -0800)
This patch fixes the Sparse Warnings "symbol was
not declared. Should it be static?" so it removes
some extern expressions to r8180.h and it defines
some extern expressions in ieee80211.h

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211.h
drivers/staging/rtl8187se/r8180.h
drivers/staging/rtl8187se/r8180_core.c

index 7f015499cfae98ffadb41ba9ac516f3165326fe2..ce8dcf79185c69627f45462b3c59149457ea089b 100644 (file)
@@ -90,6 +90,9 @@
 
 #define        IEEE_CRYPT_ALG_NAME_LEN                 16
 
+extern int ieee80211_crypto_tkip_init(void);
+extern void ieee80211_crypto_tkip_exit(void);
+
 //by amy for ps
 typedef struct ieee_param {
        u32 cmd;
index d052f4a9a839ed6f95234d695ba7a12e00b6108d..84957be01b4fdef35a8a5f2bd092074e02719778 100644 (file)
@@ -687,3 +687,13 @@ void rtl8180_rate_adapter(struct work_struct * work);
 bool MgntActSet_RF_State(struct net_device *dev, RT_RF_POWER_STATE StateToSet, u32 ChangeSource);
 
 #endif
+
+/* fun with the built-in ieee80211 stack... */
+extern int ieee80211_crypto_init(void);
+extern void ieee80211_crypto_deinit(void);
+extern int ieee80211_crypto_tkip_init(void);
+extern void ieee80211_crypto_tkip_exit(void);
+extern int ieee80211_crypto_ccmp_init(void);
+extern void ieee80211_crypto_ccmp_exit(void);
+extern int ieee80211_crypto_wep_init(void);
+extern void ieee80211_crypto_wep_exit(void);
index 2462ced682150938cfc949b7f420427017687abe..d4ba717ff0dfa2a8ebec694e95f8713290d4ccf0 100644 (file)
@@ -3310,16 +3310,6 @@ static void rtl8180_pci_remove(struct pci_dev *pdev)
        DMESG("wlan driver removed\n");
 }
 
-/* fun with the built-in ieee80211 stack... */
-extern int ieee80211_crypto_init(void);
-extern void ieee80211_crypto_deinit(void);
-extern int ieee80211_crypto_tkip_init(void);
-extern void ieee80211_crypto_tkip_exit(void);
-extern int ieee80211_crypto_ccmp_init(void);
-extern void ieee80211_crypto_ccmp_exit(void);
-extern int ieee80211_crypto_wep_init(void);
-extern void ieee80211_crypto_wep_exit(void);
-
 static int __init rtl8180_pci_module_init(void)
 {
        int ret;