diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-05-19 20:57:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2025-05-23 09:24:18 +0000 |
| commit | 38b95d588f8fd07027ad8dbca3e1d2b5c13413ae (patch) | |
| tree | dfc2590be3223fd6521cb52588b1e496fe809866 /net/unix/af_unix.c | |
| parent | af_unix: Don't pass struct socket to maybe_add_creds(). (diff) | |
| download | kernel-38b95d588f8fd07027ad8dbca3e1d2b5c13413ae.tar.gz kernel-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 <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
