Skip to content

Commit

Permalink
net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Augusto Mecking Caringi authored and David S. Miller committed Dec 28, 2016
1 parent 4b52416 commit 9dd0f89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/atm/lec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9dd0f89

Please sign in to comment.