summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/atmel
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-07-13 09:46:58 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-07-31 10:20:57 +0300
commit8b8f3278d241658a7dcb95cefc9793ac85a43c3a (patch)
tree0526ff32ce53c3683460a833350a6ed9c77b90fa /drivers/net/wireless/atmel
parentf21bcefcf91cc4549966e67debd082a2cb14bf73 (diff)
downloadlinux-8b8f3278d241658a7dcb95cefc9793ac85a43c3a.tar.xz
atmel: hide unused procfs helpers
When CONFIG_PROC_FS isn't set, gcc warning this: drivers/net/wireless/atmel/atmel.c:1402:12: warning: ‘atmel_proc_show’ defined but not used [-Wunused-function] static int atmel_proc_show(struct seq_file *m, void *v) ^ fix this by adding #ifdef around it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/atmel')
-rw-r--r--drivers/net/wireless/atmel/atmel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/atmel/atmel.c b/drivers/net/wireless/atmel/atmel.c
index 3ed3d9f6aae9..f4f56f461b61 100644
--- a/drivers/net/wireless/atmel/atmel.c
+++ b/drivers/net/wireless/atmel/atmel.c
@@ -1399,6 +1399,7 @@ static int atmel_validate_channel(struct atmel_private *priv, int channel)
return 0;
}
+#ifdef CONFIG_PROC_FS
static int atmel_proc_show(struct seq_file *m, void *v)
{
struct atmel_private *priv = m->private;
@@ -1481,6 +1482,7 @@ static int atmel_proc_show(struct seq_file *m, void *v)
seq_printf(m, "Current state:\t\t%s\n", s);
return 0;
}
+#endif
static const struct net_device_ops atmel_netdev_ops = {
.ndo_open = atmel_open,