diff options
| author | Jakub Kicinski <[email protected]> | 2021-12-29 00:49:13 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-12-29 16:48:14 +0000 |
| commit | b6459415b384cb829f0b2a4268f211c789f6cf0b (patch) | |
| tree | a3d70c692d776ef7d6f1a2a74738a3e78e5b9c5a /net/unix/af_unix.c | |
| parent | libbpf: Improve LINUX_VERSION_CODE detection (diff) | |
| download | kernel-b6459415b384cb829f0b2a4268f211c789f6cf0b.tar.gz kernel-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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Marc Kleine-Budde <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Acked-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 4d6e33bbd446..c19569819866 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -89,6 +89,7 @@ #include <linux/socket.h> #include <linux/un.h> #include <linux/fcntl.h> +#include <linux/filter.h> #include <linux/termios.h> #include <linux/sockios.h> #include <linux/net.h> |
