From 0b934eb6b14205d04f76b4464cb7dd6b9b3f6e2c Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Mon, 28 Sep 2026 12:08:00 -0700 Subject: [PATCH] net: drop unused LLC-related includes The bridge and the openvswitch code include , and without using anything out of them. parse_ethertype() is the one exception: it wants LLC_SAP_SNAP, which comes from the uAPI header pulls in, so flow.c keeps that one. The LLC core has leftovers of its own - slab, string, interrupt and net_namespace - which it has not used in a long time. None of this is new, the type 2 removal has just shrunk the LLC headers enough to make it easy to see. Signed-off-by: Jakub Kicinski Acked-by: Aaron Conole Link: https://patch.msgid.link/20260928190800.2521749-4-kuba@kernel.org Reviewed-by: Nikolay Aleksandrov Signed-off-by: Paolo Abeni --- net/bridge/br.c | 2 -- net/llc/llc_core.c | 3 --- net/llc/llc_input.c | 2 -- net/openvswitch/flow.c | 1 - net/openvswitch/flow_netlink.c | 2 -- net/openvswitch/flow_table.c | 2 -- net/openvswitch/vport-netdev.c | 1 - 7 files changed, 13 deletions(-) diff --git a/net/bridge/br.c b/net/bridge/br.c index 09a120b3b76c..c602d6305997 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c @@ -12,8 +12,6 @@ #include #include #include -#include -#include #include #include diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c index cde6a0b1509e..eafc57ac903d 100644 --- a/net/llc/llc_core.c +++ b/net/llc/llc_core.c @@ -7,13 +7,10 @@ */ #include -#include #include #include #include -#include #include -#include #include static LIST_HEAD(llc_sap_list); diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c index a8730c54b5c2..6bb4275a8518 100644 --- a/net/llc/llc_input.c +++ b/net/llc/llc_input.c @@ -6,8 +6,6 @@ * 2001-2003 by Arnaldo Carvalho de Melo */ #include -#include -#include #include #include diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index 868d9fdf3afd..1c4f3a079044 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index d8079dee700e..de0053f701b3 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c @@ -12,11 +12,9 @@ #include #include #include -#include #include #include #include -#include #include #include #include diff --git a/net/openvswitch/flow_table.c b/net/openvswitch/flow_table.c index 1e0f9d193eb0..93d36f66e2ac 100644 --- a/net/openvswitch/flow_table.c +++ b/net/openvswitch/flow_table.c @@ -11,11 +11,9 @@ #include #include #include -#include #include #include #include -#include #include #include #include diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 44808cd0fcff..7daea2e44dfa 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include