From: Augusto Mecking Caringi <augustocaringi@gmail.com>
To: netdev@vger.kernel.org
Cc: Augusto Mecking Caringi <augustocaringi@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Felipe Balbi <felipe.balbi@linux.intel.com>,
Kees Cook <keescook@chromium.org>,
Mugunthan V N <mugunthanvnm@ti.com>,
Jarod Wilson <jarod@redhat.com>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Florian Westphal <fw@strlen.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS
Date: Wed, 28 Dec 2016 16:02:05 +0000 [thread overview]
Message-ID: <1482941006-28052-1-git-send-email-augustocaringi@gmail.com> (raw)
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
next reply other threads:[~2016-12-28 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-28 16:02 Augusto Mecking Caringi [this message]
2016-12-28 20:11 ` [PATCH] net: atm: Fix warnings in net/atm/lec.c 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=1482941006-28052-1-git-send-email-augustocaringi@gmail.com \
--to=augustocaringi@gmail.com \
--cc=davem@davemloft.net \
--cc=felipe.balbi@linux.intel.com \
--cc=fw@strlen.de \
--cc=jarod@redhat.com \
--cc=javier@osg.samsung.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mugunthanvnm@ti.com \
--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).