Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1548012 > unrolled thread

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

Started byAugusto Mecking Caringi <augustocaringi@gmail.com>
First post2016-12-28 17:10 +0100
Last post2016-12-28 21:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS Augusto Mecking Caringi <augustocaringi@gmail.com> - 2016-12-28 17:10 +0100
    Re: [PATCH] net: atm: Fix warnings in net/atm/lec.c when  !CONFIG_PROC_FS David Miller <davem@davemloft.net> - 2016-12-28 21:20 +0100

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

FromAugusto Mecking Caringi <augustocaringi@gmail.com>
Date2016-12-28 17:10 +0100
Subject[PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
Message-ID<sToXD-26P-9@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


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

FromDavid Miller <davem@davemloft.net>
Date2016-12-28 21:20 +0100
SubjectRe: [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
Message-ID<sTsRz-4Tc-5@gated-at.bofh.it>
In reply to#1548012
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web