From: Jérôme Pouiller Date: Tue, 5 May 2020 12:37:52 +0000 (+0200) Subject: staging: wfx: fix missing 'static' keyword X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bcd8795ad2b6909fb2736fe6efea6052b154bac2;p=linux.git staging: wfx: fix missing 'static' keyword Sparse tool noticed that wfx_enable_beacon() is never used outside of sta.c. Therefore, it can be declared static. Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20200505123757.39506-11-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 74ec0b6040854..3ad0b67a7dcad 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -519,7 +519,7 @@ void wfx_leave_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif) wfx_do_unjoin(wvif); } -void wfx_enable_beacon(struct wfx_vif *wvif, bool enable) +static void wfx_enable_beacon(struct wfx_vif *wvif, bool enable) { // Driver has Content After DTIM Beacon in queue. Driver is waiting for // a signal from the firmware. Since we are going to stop to send