[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200508013249.95196-1-chenzhou10@huawei.com>
Date: Fri, 8 May 2020 09:32:49 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <kvalo@...eaurora.org>
CC: <arend.vanspriel@...adcom.com>, <franky.lin@...adcom.com>,
<hante.meuleman@...adcom.com>, <chi-hsien.lin@...ress.com>,
<wright.feng@...ress.com>, <linux-wireless@...r.kernel.org>,
<brcm80211-dev-list.pdl@...adcom.com>,
<brcm80211-dev-list@...ress.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <chenzhou10@...wei.com>
Subject: [PATCH -next] brcmfmac: make non-global functions static
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@...wei.com>
Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
index e32c24a2670d..2a2440031357 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
@@ -2203,7 +2203,7 @@ static struct wireless_dev *brcmf_p2p_create_p2pdev(struct brcmf_p2p_info *p2p,
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));
--
2.20.1
Powered by blists - more mailing lists