diff options
author | 2025-05-19 13:57:54 -0700 | |
---|---|---|
committer | 2025-05-23 10:24:18 +0100 | |
commit | 38b95d588f8fd07027ad8dbca3e1d2b5c13413ae (patch) | |
tree | dfc2590be3223fd6521cb52588b1e496fe809866 /net/unix/af_unix.c | |
parent | af_unix: Don't pass struct socket to maybe_add_creds(). (diff) | |
download | wireguard-linux-38b95d588f8fd07027ad8dbca3e1d2b5c13413ae.tar.xz wireguard-linux-38b95d588f8fd07027ad8dbca3e1d2b5c13413ae.zip |
scm: Move scm_recv() from scm.h to scm.c.
scm_recv() has been placed in scm.h since the pre-git era for no
particular reason (I think), which makes the file really fragile.
For example, when you move SOCK_PASSCRED from include/linux/net.h to
enum sock_flags in include/net/sock.h, you will see weird build failure
due to terrible dependency.
To avoid the build failure in the future, let's move scm_recv(_unix())?
and its callees to scm.c.
Note that only scm_recv() needs to be exported for Bluetooth.
scm_send() should be moved to scm.c too, but I'll revisit later.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions