linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
@ 2016-12-28 16:02 Augusto Mecking Caringi
  2016-12-28 20:11 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Augusto Mecking Caringi @ 2016-12-28 16:02 UTC (permalink / raw)
  To: netdev
  Cc: Augusto Mecking Caringi, David S. Miller, Felipe Balbi,
	Kees Cook, Mugunthan V N, Jarod Wilson, Javier Martinez Canillas,
	Florian Westphal, linux-kernel

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>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
  2016-12-28 16:02 [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS Augusto Mecking Caringi
@ 2016-12-28 20:11 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-12-28 20:11 UTC (permalink / raw)
  To: augustocaringi
  Cc: netdev, felipe.balbi, keescook, mugunthanvnm, jarod, javier, fw,
	linux-kernel

From: Augusto Mecking Caringi <augustocaringi@gmail.com>
Date: Wed, 28 Dec 2016 16:02:05 +0000

> 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>

Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-28 20:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-28 16:02 [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS Augusto Mecking Caringi
2016-12-28 20:11 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).