Re: [PATCH] net: enetc: Replace ifdef with IS_ENABLED

From: Simon Horman
Date: Tue Sep 03 2024 - 13:04:44 EST


On Fri, Aug 30, 2024 at 06:50:50PM +0100, 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

maybe: compiled -> built-in

> 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.
>
> Signed-off-by: Martyn Welch <martyn.welch@xxxxxxxxxxxxx>

...