diff options
author | 2025-03-17 20:48:49 -0700 | |
---|---|---|
committer | 2025-03-25 04:30:07 -0700 | |
commit | 84960bf2403123a5a15711d050455e195a8d5ba3 (patch) | |
tree | fa039d6a0f8f3038b5a5fd028c620587c43d2228 /net/unix/unix_bpf.c | |
parent | af_unix: Sort headers. (diff) | |
download | wireguard-linux-84960bf2403123a5a15711d050455e195a8d5ba3.tar.xz wireguard-linux-84960bf2403123a5a15711d050455e195a8d5ba3.zip |
af_unix: Move internal definitions to net/unix/.
net/af_unix.h is included by core and some LSMs, but most definitions
need not be.
Let's move struct unix_{vertex,edge} to net/unix/garbage.c and other
definitions to net/unix/af_unix.h.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250318034934.86708-3-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/unix_bpf.c')
-rw-r--r-- | net/unix/unix_bpf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/unix/unix_bpf.c b/net/unix/unix_bpf.c index 86598a959eaa..979dd4c4261a 100644 --- a/net/unix/unix_bpf.c +++ b/net/unix/unix_bpf.c @@ -6,6 +6,8 @@ #include <net/af_unix.h> #include <net/sock.h> +#include "af_unix.h" + #define unix_sk_has_data(__sk, __psock) \ ({ !skb_queue_empty(&__sk->sk_receive_queue) || \ !skb_queue_empty(&__psock->ingress_skb) || \ |