diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-03-18 03:48:49 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-25 11:30:07 +0000 |
| commit | 84960bf2403123a5a15711d050455e195a8d5ba3 (patch) | |
| tree | fa039d6a0f8f3038b5a5fd028c620587c43d2228 /net/unix/af_unix.c | |
| parent | af_unix: Sort headers. (diff) | |
| download | kernel-84960bf2403123a5a15711d050455e195a8d5ba3.tar.gz kernel-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 <[email protected]>
Reviewed-by: Joe Damato <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 1ff0ac99f3f3..6390e04fe916 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -118,6 +118,8 @@ #include <net/sock.h> #include <net/tcp_states.h> +#include "af_unix.h" + static atomic_long_t unix_nr_socks; static struct hlist_head bsd_socket_buckets[UNIX_HASH_SIZE / 2]; static spinlock_t bsd_socket_locks[UNIX_HASH_SIZE / 2]; |
