[OPW,kernel] Staging: vt6655: Fix Sparse Warning for Static Declarations in ieee80211_crypt.c
diff mbox

Message ID 1382641316-7061-1-git-send-email-ebru.akagunduz@gmail.com
State Superseded
Headers show

Commit Message

Ebru Akagündüz Oct. 24, 2013, 7:01 p.m. UTC
This patch fixes the Sparse Warning "symbol was
not declared. Should it be static?" in
ieee80211_crypt.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Ebru Akagündüz Oct. 24, 2013, 7:47 p.m. UTC | #1
I noticed later that I got below warnings when I compiled it:
‘ieee80211_crypto_init’ defined but not used [-Wunused-function]
‘ieee80211_crypto_deinit’ defined but not used [-Wunused-function]

So I'll fix and resend this patch.

Patch
diff mbox

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c
index 694eae3..be0a2ed 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_crypt.c
@@ -200,7 +200,7 @@  static struct ieee80211_crypto_ops ieee80211_crypt_null = {
 };
 
 
-int ieee80211_crypto_init(void)
+static int ieee80211_crypto_init(void)
 {
 	int ret = -ENOMEM;
 
@@ -221,7 +221,7 @@  out:
 }
 
 
-void ieee80211_crypto_deinit(void)
+static void ieee80211_crypto_deinit(void)
 {
 	struct list_head *ptr, *n;
 	struct ieee80211_crypto_alg *alg = NULL;