Skip to content

af_unix: Clean up headers.

Kuniyuki Iwashima netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4af_unix: Sort headers.include/net/af_unix.h net/unix/af_unix.c net/unix/diag.c +3 more+51 -523 repliesApplied
2/4af_unix: Move internal definitions to net/unix/.include/net/af_unix.h net/unix/af_unix.c net/unix/af_unix.h +4 more+102 -754 repliesApplied
3/4af_unix: Explicitly include headers for non-pointer struct fields.include/net/af_unix.h net/unix/af_unix.c net/unix/diag.c +2 more+6 -140 repliesApplied
4/4af_unix: Clean up #include under net/unix/.net/unix/af_unix.c net/unix/diag.c net/unix/garbage.c +1 more+9 -170 repliesApplied

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchJoe Damato
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 net-next 0/4] af_unix: Clean up headers.

AF_UNIX files include many unnecessary headers (netdevice.h and rtnetlink.h, etc), and this series cleans them up.

Note that there are still some headers included indirectly and modifying them triggers rebuild, which seems mostly inevitable. [0]

  $ python3 include_graph.py net/unix/garbage.c linux/rtnetlink.h linux/netdevice.h
  ...
  include/net/af_unix.h
  | include/linux/net.h
  | | include/linux/once.h
  | | include/linux/sockptr.h
  | | include/uapi/linux/net.h
  | include/net/sock.h
  | | include/linux/netdevice.h   <---
  ...
  | | include/net/dst.h
  | | | include/linux/rtnetlink.h <---

[0]: https://gist.github.com/q2ven/9c5897f11a493145829029c0bfb364d0

Kuniyuki Iwashima (4):
af_unix: Sort headers.
af_unix: Move internal definitions to net/unix/.
af_unix: Explicitly include headers for non-pointer struct fields.
af_unix: Clean up #include under net/unix/.

 include/net/af_unix.h      | 84 ++++----------------------------------
 net/unix/af_unix.c         | 55 +++++++++++--------------
 net/unix/af_unix.h         | 75 ++++++++++++++++++++++++++++++++++
 net/unix/diag.c            | 18 ++++----
 net/unix/garbage.c         | 33 +++++++++------
 net/unix/sysctl_net_unix.c |  6 ++-
 net/unix/unix_bpf.c        |  5 ++-
 7 files changed, 143 insertions(+), 133 deletions(-)
 create mode 100644 net/unix/af_unix.h
Signature · 1 line
2.48.1