diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-12-29 01:49:13 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-29 17:48:14 +0100 |
commit | b6459415b384cb829f0b2a4268f211c789f6cf0b (patch) | |
tree | a3d70c692d776ef7d6f1a2a74738a3e78e5b9c5a /net/bridge/br_ioctl.c | |
parent | libbpf: Improve LINUX_VERSION_CODE detection (diff) | |
download | linux-b6459415b384cb829f0b2a4268f211c789f6cf0b.tar.xz linux-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 'net/bridge/br_ioctl.c')
-rw-r--r-- | net/bridge/br_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_ioctl.c b/net/bridge/br_ioctl.c index db4ab2c2ce18..9b54d7d0bfc4 100644 --- a/net/bridge/br_ioctl.c +++ b/net/bridge/br_ioctl.c @@ -8,6 +8,7 @@ */ #include <linux/capability.h> +#include <linux/compat.h> #include <linux/kernel.h> #include <linux/if_bridge.h> #include <linux/netdevice.h> |