From: Augusto Mecking Caringi <augustocaringi@gmail.com>
To: "David S . Miller" <davem@davemloft.net>
Cc: Augusto Mecking Caringi <augustocaringi@gmail.com>,
Jiri Pirko <jiri@mellanox.com>,
Ido Schimmel <idosch@mellanox.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] net: atm: Fix build error when !CONFIG_PROC_FS
Date: Thu, 19 Jan 2017 11:00:12 +0000 [thread overview]
Message-ID: <1484823626-8150-1-git-send-email-augustocaringi@gmail.com> (raw)
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
next reply other threads:[~2017-01-19 11:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-19 11:00 Augusto Mecking Caringi [this message]
2017-01-19 16:32 ` [PATCH] net: atm: Fix build error when !CONFIG_PROC_FS David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484823626-8150-1-git-send-email-augustocaringi@gmail.com \
--to=augustocaringi@gmail.com \
--cc=davem@davemloft.net \
--cc=idosch@mellanox.com \
--cc=jiri@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).