netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: atm: Fix build error when !CONFIG_PROC_FS
@ 2017-01-19 11:00 Augusto Mecking Caringi
  2017-01-19 16:32 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Augusto Mecking Caringi @ 2017-01-19 11:00 UTC (permalink / raw)
  To: David S . Miller
  Cc: Augusto Mecking Caringi, Jiri Pirko, Ido Schimmel, netdev,
	linux-kernel

When CONFIG_ATM_CLIP is set and CONFIG_PROC_FS is not set, the building
was failing whith the error:

net/atm/clip.c: In function ‘atm_clip_exit’:
net/atm/clip.c:933:27: error: ‘atm_proc_root’ undeclared (first use in
this function)
remove_proc_entry("arp", atm_proc_root);
                           ^

Fix it by putting the proc cleanup code inside a #ifdef CONFIG_PROC_FS
block.

Signed-off-by: Augusto Mecking Caringi <augustocaringi@gmail.com>
---
 net/atm/clip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/atm/clip.c b/net/atm/clip.c
index 53b4ac0..75221e4 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -930,7 +930,9 @@ static void atm_clip_exit_noproc(void)
 
 static void __exit atm_clip_exit(void)
 {
+#ifdef CONFIG_PROC_FS
 	remove_proc_entry("arp", atm_proc_root);
+#endif
 
 	atm_clip_exit_noproc();
 }
-- 
2.7.4

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

end of thread, other threads:[~2017-01-19 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 11:00 [PATCH] net: atm: Fix build error when !CONFIG_PROC_FS Augusto Mecking Caringi
2017-01-19 16:32 ` 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).