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

staging: rtl8821ae: fix sparse warning for static declarations

This commit fixes the following sparse warnings in ps.c:
- 702: warning: symbol 'rtl_p2p_noa_ie' was not declared. Should it be static?
- 802: warning: symbol 'rtl_p2p_action_ie' was not declared. Should it be static?

Signed-off-by: Marcus Farkas <marcus.farkas@finitebox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Marcus Farkas and committed by
Greg Kroah-Hartman
949c4ef0 bd9dc62c

+4 -2
+4 -2
drivers/staging/rtl8821ae/ps.c
··· 699 699 } 700 700 701 701 702 - void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data, unsigned int len) 702 + static void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data, 703 + unsigned int len) 703 704 { 704 705 struct rtl_priv *rtlpriv = rtl_priv(hw); 705 706 struct ieee80211_mgmt *mgmt = (void *)data; ··· 800 799 } 801 800 } 802 801 803 - void rtl_p2p_action_ie(struct ieee80211_hw *hw, void *data, unsigned int len) 802 + static void rtl_p2p_action_ie(struct ieee80211_hw *hw, void *data, 803 + unsigned int len) 804 804 { 805 805 struct rtl_priv *rtlpriv = rtl_priv(hw); 806 806 struct ieee80211_mgmt *mgmt = (void *)data;