Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging:rtl8187se:ieee80211: Fix Sparse Warning for Static Declarations

This patch fixes the following Sparse warnings :

drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:27:4: warning:
symbol 'rsn_authen_cipher_suite' was not declared. Should it be static?
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:352:6: warning:
symbol 'ext_ieee80211_send_beacon_wq' was not declared. Should it be
static?

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Himangi Saraogi and committed by
Greg Kroah-Hartman
56c87c0d f5099d5e

+2 -2
+2 -2
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
··· 24 24 #include <linux/etherdevice.h> 25 25 26 26 #include "dot11d.h" 27 - u8 rsn_authen_cipher_suite[16][4] = { 27 + static u8 rsn_authen_cipher_suite[16][4] = { 28 28 {0x00, 0x0F, 0xAC, 0x00}, //Use group key, //Reserved 29 29 {0x00, 0x0F, 0xAC, 0x01}, //WEP-40 //RSNA default 30 30 {0x00, 0x0F, 0xAC, 0x02}, //TKIP //NONE //{used just as default} ··· 349 349 350 350 struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee); 351 351 352 - void ext_ieee80211_send_beacon_wq(struct ieee80211_device *ieee) 352 + static void ext_ieee80211_send_beacon_wq(struct ieee80211_device *ieee) 353 353 { 354 354 struct sk_buff *skb; 355 355