netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Couple of vlan cleanups
@ 2025-06-10  7:26 Gal Pressman
  2025-06-10  7:26 ` [PATCH net-next 1/2] net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs Gal Pressman
  2025-06-10  7:26 ` [PATCH net-next 2/2] net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard Gal Pressman
  0 siblings, 2 replies; 6+ messages in thread
From: Gal Pressman @ 2025-06-10  7:26 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Andrew Lunn, netdev
  Cc: Gal Pressman

A couple of vlan cleanups/improvements:
First patch replaces BUG() calls with WARN_ON_ONCE(). This fixes a
compilation warning/error from objtool, and in general the usage of
BUG() should be avoided.

The second patch uses the "kernel" way of testing whether an option is
configured as builtin/module, instead of open-coding it.

Gal Pressman (2):
  net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs
  net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard

 include/linux/if_vlan.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-12 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10  7:26 [PATCH net-next 0/2] Couple of vlan cleanups Gal Pressman
2025-06-10  7:26 ` [PATCH net-next 1/2] net: vlan: Replace BUG() with WARN_ON_ONCE() in vlan_dev_* stubs Gal Pressman
2025-06-12  0:15   ` Jakub Kicinski
2025-06-12 10:32     ` Gal Pressman
2025-06-12 14:34       ` Jakub Kicinski
2025-06-10  7:26 ` [PATCH net-next 2/2] net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard Gal Pressman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).