Merge branch 'af_unix-clean-up-headers'
authorJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 11:30:11 +0000 (04:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 11:30:11 +0000 (04:30 -0700)
commit5555b34c581d943e3c837cc4fd75cc3b563f4726
tree29dc19578a1bcaad3062be16ebc63d5eaccda95c
parent0d14c3948a801742d3b5426933832c7c0588b763
parent0083e3e37e07961465bfbc44e19035381eaeb574
Merge branch 'af_unix-clean-up-headers'

Kuniyuki Iwashima says:

====================
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
====================

Link: https://patch.msgid.link/20250318034934.86708-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>