diff options
| author | Gal Pressman <gal@nvidia.com> | 2025-06-16 16:26:25 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-17 18:06:38 -0700 |
| commit | 60a8b1a5d0824afda869f18dc0ecfe72f8dfda42 (patch) | |
| tree | e1940a4202b1e3d3f09f038823bc08f2f847b119 /scripts/lib/kdoc/kdoc_re.py | |
| parent | 2de1ba0887e5d3bf02d7c212f380039b34e10aa3 (diff) | |
net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs
When CONFIG_VLAN_8021Q=n, a set of stub helpers are used, three of these
helpers use BUG() unconditionally.
This code should not be reached, as callers of these functions should
always check for is_vlan_dev() first, but the usage of BUG() is not
recommended, replace it with WARN_ON() instead.
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-3-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
