diff options
author | Augusto Mecking Caringi <augustocaringi@gmail.com> | 2016-12-28 19:02:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-28 23:11:32 +0300 |
commit | 9dd0f896d2cc5815d859e945db90915071cd44b3 (patch) | |
tree | c808cf3fdc102914d522ef0b99d1be5e2f4b79fa /net | |
parent | 4b52416a3f15df80af46d97d41f32ef5dde6e5fb (diff) | |
download | linux-9dd0f896d2cc5815d859e945db90915071cd44b3.tar.xz |
net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/lec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c index 019557d0a11d..09cfe87f0a44 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); |