[PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS

From: Augusto Mecking Caringi
Date: Wed Dec 28 2016 - 11:04:32 EST


This patch fixes the following warnings when CONFIG_PROC_FS is not set:

linux/net/atm/lec.c: In function âlane_module_cleanupâ:
linux/net/atm/lec.c:1062:27: error: âatm_proc_rootâ undeclared (first
use in this function)
remove_proc_entry("lec", atm_proc_root);
^
linux/net/atm/lec.c:1062:27: note: each undeclared identifier is
reported only once for each function it appears in

Signed-off-by: Augusto Mecking Caringi <augustocaringi@xxxxxxxxx>
---
net/atm/lec.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/net/atm/lec.c b/net/atm/lec.c
index 019557d..09cfe87 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void)
{
int i;

+#ifdef CONFIG_PROC_FS
remove_proc_entry("lec", atm_proc_root);
+#endif

deregister_atm_ioctl(&lane_ioctl_ops);

--
2.7.4