diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-12-28 16:49:13 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-29 08:48:14 -0800 |
commit | b6459415b384cb829f0b2a4268f211c789f6cf0b (patch) | |
tree | a3d70c692d776ef7d6f1a2a74738a3e78e5b9c5a /drivers/net/dsa | |
parent | 5b3d72987701d51bf31823b39db49d10970f5c2d (diff) | |
download | linux-stable-b6459415b384cb829f0b2a4268f211c789f6cf0b.tar.gz linux-stable-b6459415b384cb829f0b2a4268f211c789f6cf0b.tar.bz2 linux-stable-b6459415b384cb829f0b2a4268f211c789f6cf0b.zip |
net: Don't include filter.h from net/sock.h
sock.h is pretty heavily used (5k objects rebuilt on x86 after
it's touched). We can drop the include of filter.h from it and
add a forward declaration of struct sk_filter instead.
This decreases the number of rebuilt objects when bpf.h
is touched from ~5k to ~1k.
There's a lot of missing includes this was masking. Primarily
in networking tho, this time.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/bpf/20211229004913.513372-1-kuba@kernel.org
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/microchip/ksz8795.c | 1 | ||||
-rw-r--r-- | drivers/net/dsa/xrs700x/xrs700x.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index 013e9c02be71..991b9c6b6ce7 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -10,6 +10,7 @@ #include <linux/delay.h> #include <linux/export.h> #include <linux/gpio.h> +#include <linux/if_vlan.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_data/microchip-ksz.h> diff --git a/drivers/net/dsa/xrs700x/xrs700x.c b/drivers/net/dsa/xrs700x/xrs700x.c index 35fa19ddaf19..0730352cdd57 100644 --- a/drivers/net/dsa/xrs700x/xrs700x.c +++ b/drivers/net/dsa/xrs700x/xrs700x.c @@ -5,6 +5,7 @@ */ #include <net/dsa.h> +#include <linux/etherdevice.h> #include <linux/if_bridge.h> #include <linux/of_device.h> #include <linux/netdev_features.h> |