brcmfmac: make non-global functions static
authorChen Zhou <chenzhou10@huawei.com>
Fri, 8 May 2020 01:32:49 +0000 (09:32 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 12 May 2020 08:52:04 +0000 (11:52 +0300)
Fix sparse warning:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c:2206:5:
warning: symbol 'brcmf_p2p_get_conn_idx' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Reviewed-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200508013249.95196-1-chenzhou10@huawei.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c

index cd5801e32488dc030d8673e7eea942e1cbbe6776..b0a41cf06c99ff028b6c61f970fadcdb7921ac3a 100644 (file)
@@ -2233,7 +2233,7 @@ fail:
        return ERR_PTR(err);
 }
 
-int brcmf_p2p_get_conn_idx(struct brcmf_cfg80211_info *cfg)
+static int brcmf_p2p_get_conn_idx(struct brcmf_cfg80211_info *cfg)
 {
        int i;
        struct brcmf_if *ifp = netdev_priv(cfg_to_ndev(cfg));