]> git.ipfire.org Git - thirdparty/linux.git/commit
net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard
authorGal Pressman <gal@nvidia.com>
Mon, 16 Jun 2025 13:26:26 +0000 (16:26 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:06:39 +0000 (18:06 -0700)
commit9c5f5a5bf0da5cee2044b93907ac6d8d9af0492b
tree1b131bffa6fbed3bbf85297272fcd347e2fd043b
parent60a8b1a5d0824afda869f18dc0ecfe72f8dfda42
net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard

The header currently tests the VLAN core with an explicit pair of 'if
defined' checks:
    #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)

Instead, use IS_ENABLED() which is the kernel way to test whether an
option is configured as builtin/module.

This is purely cosmetic – no functional changes.

Reviewed-by: Alex Lazar <alazar@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20250616132626.1749331-4-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/if_vlan.h