diff options
author | Martyn Welch <[email protected]> | 2024-09-12 18:37:40 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-09-13 20:01:11 -0700 |
commit | 9c699a8f3b273c62f7b364ff999e873501a1e834 (patch) | |
tree | 6417145a9dbda722ebb6631f398b41a4f0b405cf /tools/perf/util/scripting-engines/trace-event-python.c | |
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 <[email protected]>
Signed-off-by: Martyn Welch <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions