Thread (4 messages) flat view 4 messages, 3 authors, 2024-09-03

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

From: Simon Horman <horms@kernel.org>
Date: 2024-09-03 17:04:24
Also in: lkml

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 <redacted>
...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help