Skip to content

Commit 9dd0f89

Browse files
caringidavem330
authored andcommitted
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>
1 parent 4b52416 commit 9dd0f89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/atm/lec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void)
10591059
{
10601060
int i;
10611061

1062+
#ifdef CONFIG_PROC_FS
10621063
remove_proc_entry("lec", atm_proc_root);
1064+
#endif
10631065

10641066
deregister_atm_ioctl(&lane_ioctl_ops);
10651067

0 commit comments

Comments
 (0)