diff options
author | Martyn Welch <martyn.welch@collabora.com> | 2024-09-12 18:37:40 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-09-13 20:01:11 -0700 |
commit | 9c699a8f3b273c62f7b364ff999e873501a1e834 (patch) | |
tree | 6417145a9dbda722ebb6631f398b41a4f0b405cf /scripts/gdb/linux/interrupts.py | |
parent | 9297886f9fcd20176a2eb68961c79f4f0b99e117 (diff) |
net: enetc: Replace ifdef with IS_ENABLED
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 built-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.
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240912173742.484549-1-martyn.welch@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions