From: Teodora Baluta Date: Fri, 18 Oct 2013 18:37:47 +0000 (+0300) Subject: staging: rtl8192u: fix sparse warning, make a function static X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~9884^2~193 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5e1e704a7de14ae79dc4d983dbbcab67064960c9;p=mirror_ubuntu-zesty-kernel.git staging: rtl8192u: fix sparse warning, make a function static Fix the following sparse warning: drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:240:22: warning: symbol 'ieee80211_alloc_txb' was not declared. Should it be static? Signed-off-by: Teodora Baluta Reviewed-by: Peter P Waskiewicz Jr Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c index 682659a749b6..157b2d7466e5 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c @@ -237,8 +237,8 @@ void ieee80211_txb_free(struct ieee80211_txb *txb) { kfree(txb); } -struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, - gfp_t gfp_mask) +static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, + gfp_t gfp_mask) { struct ieee80211_txb *txb; int i;