On 2/8/19 6:34 PM, Jens Axboe wrote:
We need this functionality for the io_uring file registration, but
we cannot rely on it since CONFIG_UNIX can be modular. Move the helpers
to a separate file, that's always builtin to the kernel if CONFIG_UNIX is
m/y.

No functional changes in this patch, just moving code around.

Cc: [email protected]
Cc: David S. Miller <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
---
  include/net/af_unix.h |   1 +
  net/unix/Kconfig      |   5 ++
  net/unix/Makefile     |   2 +
  net/unix/af_unix.c    |  63 +-----------------
  net/unix/garbage.c    |  71 +-------------------
  net/unix/scm.c        | 146 ++++++++++++++++++++++++++++++++++++++++++
  net/unix/scm.h        |  10 +++
  7 files changed, 168 insertions(+), 130 deletions(-)
  create mode 100644 net/unix/scm.c
  create mode 100644 net/unix/scm.h

Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes


Reply via email to