diff options
| author | Wei Fang <wei.fang@nxp.com> | 2025-11-19 10:51:45 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-20 18:40:07 -0800 |
| commit | eef7b786bdab146047d0372eff9f6bd16cffe415 (patch) | |
| tree | 89777e7c5cd82a3b30260c8a46a0f50e679bdecf /tools/testing/selftests/drivers/net/netcons_overflow.sh | |
| parent | 3eea593b5597e580def9658aa6397e1057f27acd (diff) | |
net: fec: simplify the conditional preprocessor directives
From the Kconfig file, we can see CONFIG_FEC depends on the following
platform-related options.
ColdFire: M523x, M527x, M5272, M528x, M520x and M532x
S32: ARCH_S32 (ARM64)
i.MX: SOC_IMX28 and ARCH_MXC (ARM and ARM64)
Based on the code of fec driver, only some macro definitions on the
M5272 platform are different from those on other platforms. Therefore,
we can simplify the following complex preprocessor directives to
"if !defined(CONFIG_M5272)".
"#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || \
defined(CONFIG_M528x) || defined(CONFIG_M520x) || \
defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
defined(CONFIG_ARM64)"
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20251119025148.2817602-3-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/net/netcons_overflow.sh')
0 files changed, 0 insertions, 0 deletions
