From: Vadim Fedorenko <vadim.fedorenko@linux.dev>
To: Martyn Welch <martyn.welch@collabora.com>,
Claudiu Manoil <claudiu.manoil@nxp.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: kernel@collabora.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: enetc: Replace ifdef with IS_ENABLED
Date: Wed, 4 Sep 2024 12:11:31 +0100 [thread overview]
Message-ID: <fc1afd33-c903-46ca-ae4f-4e9a1c037023@linux.dev> (raw)
In-Reply-To: <20240904105143.2444106-1-martyn.welch@collabora.com>
On 04/09/2024 11:51, Martyn Welch wrote:
> The enetc driver uses ifdefs when checking whether
> CONFIG_FSL_ENETC_PTP_CLOCK is enabled in a number of places. This works
> if the driver is compiled in but fails if the driver is available as a
> kernel module. Replace the instances of ifdef with use of the IS_ENABLED
> macro, that will evaluate as true when this feature is built as a kernel
> module and follows the kernel's coding style.
>
> Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
If there will be v4, please, put yours SoB as the last tag after all
other tags.
Thanks,
Vadim
next prev parent reply other threads:[~2024-09-04 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 10:51 [PATCH net-next v3] net: enetc: Replace ifdef with IS_ENABLED Martyn Welch
2024-09-04 11:11 ` Vadim Fedorenko [this message]
2024-09-04 11:13 ` Vladimir Oltean
2024-09-04 13:01 ` Vadim Fedorenko
2024-09-04 12:55 ` Vladimir Oltean
2024-09-07 1:20 ` Jakub Kicinski
2024-09-12 14:01 ` Martyn Welch
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=fc1afd33-c903-46ca-ae4f-4e9a1c037023@linux.dev \
--to=vadim.fedorenko@linux.dev \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kernel@collabora.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martyn.welch@collabora.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.com \
/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