Skip to content

Fix net header dependencies

Ben Hutchings linux-hams netdev netfilter-devel 2 versions – In review

Get series with b4
b4 am 1314247131.27179.116.camel@deadeye

Versions newest first · linked by author and title

  1. v2 Latest10 patches 6 repliesIn review
  2. v112 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10headers, pppox: Add missing #include to <linux/if_pppox.h>include/linux/if_pppox.h+1 -10 replies
2/10headers, ax25: Add missing #include to <linux/netrom.h>, <linux/rose.h>include/linux/netrom.h include/linux/rose.h+4 -00 replies
3/10headers, pppol2tp: Use __kernel_pid_t in <linux/pppol2tp.h>include/linux/if_pppol2tp.h+1 -10 replies
4/10headers, net: Use __kernel_sa_family_t in more definitions shared with userlandinclude/linux/atalk.h include/linux/ax25.h include/linux/caif/caif_socket.h +12 more+37 -330 replies
5/10headers, net: Define struct __kernel_sockaddr, replacing struct sockaddrinclude/linux/if.h include/linux/phonet.h include/linux/socket.h+17 -155 replies
6/10headers, netfilter: Use kernel type names __u8, __u16, __u32include/linux/netfilter_arp/arp_tables.h include/linux/netfilter_ipv4/ip_tables.h include/linux/netfilter_ipv6/ip6_tables.h+28 -280 replies
7/10headers, tipc: Add missing #include to <linux/tipc_config.h> for userlandinclude/linux/tipc_config.h+4 -00 replies
8/10headers, netfilter: Add missing #include <limits.h> for userlandinclude/linux/netfilter_decnet.h include/linux/netfilter_ipv4.h include/linux/netfilter_ipv6.h+9 -00 replies
9/10headers, xtables: Add missing #include <linux/netfilter.h>include/linux/netfilter/xt_connlimit.h include/linux/netfilter/xt_conntrack.h include/linux/netfilter/xt_iprange.h+3 -00 replies
10/10headers, can: Add missing #include to <linux/can/bcm.h>include/linux/can/bcm.h+1 -00 replies

Reviews trailers per patch

5 of 10 patches have a Reviewed-by or Acked-by.

PatchRalf BaechlePatrick McHardyOliver Hartkopp
1/10
2/10A-b
3/10
4/10
5/10
6/10A-b
7/10
8/10A-b
9/10A-b
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 00/10] Fix net header dependencies

Various networking headers depend on definitions from others which they don't include. We can't fix all of these, because some definitions are duplicated between kernel headers and glibc headers and we cannot tell which is the right one to include. We also have to be wary of introducing a dependency cycle.

Since v1, I've dropped the patches to <linux/scc.h> and <linux/if_ppp.h> and added the acknowledgements I got last time.

Ben.

Ben Hutchings (10):
headers, pppox: Add missing #include to <linux/if_pppox.h> headers, ax25: Add missing #include to <linux/netrom.h>,

    <linux/rose.h>

headers, pppol2tp: Use __kernel_pid_t in <linux/pppol2tp.h> headers, net: Use __kernel_sa_family_t in more definitions shared
with userland
headers, net: Define struct __kernel_sockaddr, replacing struct
sockaddr
headers, netfilter: Use kernel type names __u8, __u16, __u32 headers, tipc: Add missing #include to <linux/tipc_config.h> for
userland
headers, netfilter: Add missing #include <limits.h> for userland headers, xtables: Add missing #include <linux/netfilter.h> headers, can: Add missing #include to <linux/can/bcm.h>

 include/linux/atalk.h                     |    3 ++-
 include/linux/ax25.h                      |    2 +-
 include/linux/caif/caif_socket.h          |    7 +------
 include/linux/can.h                       |    2 +-
 include/linux/can/bcm.h                   |    1 +
 include/linux/if.h                        |   12 ++++++------
 include/linux/if_pppol2tp.h               |    2 +-
 include/linux/if_pppox.h                  |    9 +++++----
 include/linux/in.h                        |    2 +-
 include/linux/ipx.h                       |    2 +-
 include/linux/irda.h                      |    9 +++------
 include/linux/l2tp.h                      |    7 ++++---
 include/linux/llc.h                       |   10 +++++++---
 include/linux/netfilter/xt_connlimit.h    |    1 +
 include/linux/netfilter/xt_conntrack.h    |    1 +
 include/linux/netfilter/xt_iprange.h      |    1 +
 include/linux/netfilter_arp/arp_tables.h  |   14 +++++++-------
 include/linux/netfilter_decnet.h          |    3 +++
 include/linux/netfilter_ipv4.h            |    3 +++
 include/linux/netfilter_ipv4/ip_tables.h  |   20 ++++++++++----------
 include/linux/netfilter_ipv6.h            |    3 +++
 include/linux/netfilter_ipv6/ip6_tables.h |   22 +++++++++++-----------
 include/linux/netlink.h                   |    2 +-
 include/linux/netrom.h                    |    2 ++
 include/linux/phonet.h                    |    6 ++++--
 include/linux/rose.h                      |    7 +++++--
 include/linux/socket.h                    |   17 +++++++++--------
 include/linux/tipc_config.h               |    4 ++++
 include/linux/un.h                        |    4 +++-
 include/linux/x25.h                       |    3 ++-
 30 files changed, 104 insertions(+), 77 deletions(-)
Signature · 1 line
1.7.5.4