From: David Miller <davem@davemloft.net>
To: augustocaringi@gmail.com
Cc: jiri@mellanox.com, idosch@mellanox.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: atm: Fix build error when !CONFIG_PROC_FS
Date: Thu, 19 Jan 2017 11:32:28 -0500 (EST) [thread overview]
Message-ID: <20170119.113228.175631525740148009.davem@davemloft.net> (raw)
In-Reply-To: <1484823626-8150-1-git-send-email-augustocaringi@gmail.com>
From: Augusto Mecking Caringi <augustocaringi@gmail.com>
Date: Thu, 19 Jan 2017 11:00:12 +0000
> 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>
When CONFIG_PROC_FS is not defined, remove_proc_entry is defined as the
macro:
#define remove_proc_entry(name, parent) do {} while (0)
Therefore it is impossible for atm_proc_root to be referened in any way.
The fallback macro is designed exactly so that ugly ifdefs like the one
you are proposing aren't necessary.
I'm not applyiing this patch, something else is happening in your tree.
prev parent reply other threads:[~2017-01-19 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20170119.113228.175631525740148009.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=augustocaringi@gmail.com \
--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).