diff options
| author | Jakub Kicinski <[email protected]> | 2025-06-18 01:06:42 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-18 01:06:42 +0000 |
| commit | ccde40812ad0525143e333fbf8ff1bba53f782f2 (patch) | |
| tree | 1b131bffa6fbed3bbf85297272fcd347e2fd043b /net/ipv4/tcp_output.c | |
| parent | Merge branch 'net-use-new-gpio-line-value-setter-callbacks' (diff) | |
| parent | net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard (diff) | |
| download | kernel-ccde40812ad0525143e333fbf8ff1bba53f782f2.tar.gz kernel-ccde40812ad0525143e333fbf8ff1bba53f782f2.zip | |
Merge branch 'misc-vlan-cleanups'
Gal Pressman says:
====================
Misc vlan cleanups
This patch series addresses compilation issues with objtool when VLAN
support is disabled (CONFIG_VLAN_8021Q=n) and makes related improvements
to the VLAN infrastructure.
When CONFIG_VLAN_8021Q=n, CONFIG_OBJTOOL=y, and CONFIG_OBJTOOL_WERROR=y,
the following compilation error occurs:
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.o: error: objtool: parse_mirred.isra.0+0x370: mlx5e_tc_act_vlan_add_push_action() missing __noreturn in .c/.h or NORETURN() in noreturns.h
The error occurs because objtool cannot determine that unreachable BUG()
calls in VLAN code paths are actually dead code when VLAN support is
disabled.
First patch makes is_vlan_dev() a stub when VLAN is not configured,
allows compile-out of VLAN-dependent dead code paths and resolves the
objtool compilation error.
Second patch replaces BUG() calls with WARN_ON_ONCE(), as the usage of
BUG() should be avoided.
Third patch uses the "kernel" way of testing whether an option is
configured as builtin/module, instead of open-coding it.
v2: https://lore.kernel.org/[email protected]/
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
