naccyde / rpms / iproute

Forked from rpms/iproute 10 months ago
Clone

Blame SOURCES/0036-iproute-build-more-easily-on-Android.patch

36cfb7
From 9b0d1f60b01ac442ee3ec15c47c99d3756938034 Mon Sep 17 00:00:00 2001
36cfb7
From: Phil Sutter <psutter@redhat.com>
36cfb7
Date: Mon, 13 Nov 2017 18:09:56 +0100
36cfb7
Subject: [PATCH] iproute: build more easily on Android
36cfb7
36cfb7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1472759
36cfb7
Upstream Status: iproute2.git commit 596b1c94aa38e
36cfb7
36cfb7
commit 596b1c94aa38e21b7a8c8562e8b61ccb744255d2
36cfb7
Author: Lorenzo Colitti <lorenzo@google.com>
36cfb7
Date:   Tue Oct 3 02:03:37 2017 +0900
36cfb7
36cfb7
    iproute: build more easily on Android
36cfb7
36cfb7
    iproute2 contains a bunch of kernel headers, including uapi ones.
36cfb7
    Android's libc uses uapi headers almost directly, and uses a
36cfb7
    script to fix kernel types that don't match what userspace
36cfb7
    expects.
36cfb7
36cfb7
    For example: https://issuetracker.google.com/36987220 reports
36cfb7
    that our struct ip_mreq_source contains "__be32 imr_multiaddr"
36cfb7
    rather than "struct in_addr imr_multiaddr". The script addresses
36cfb7
    this by replacing the uapi struct definition with a #include
36cfb7
    <bits/ip_mreq.h> which contains the traditional userspace
36cfb7
    definition.
36cfb7
36cfb7
    Unfortunately, when we compile iproute2, this definition
36cfb7
    conflicts with the one in iproute2's linux/in.h.
36cfb7
36cfb7
    Historically we've just solved this problem by running "git rm"
36cfb7
    on all the iproute2 include/linux headers that break Android's
36cfb7
    libc.  However, deleting the files in this way makes it harder to
36cfb7
    keep up with upstream, because every upstream change to
36cfb7
    an include file causes a merge conflict with the delete.
36cfb7
36cfb7
    This patch fixes the problem by moving the iproute2 linux headers
36cfb7
    from include/linux to include/uapi/linux.
36cfb7
36cfb7
    Tested: compiles on ubuntu trusty (glibc)
36cfb7
36cfb7
    Signed-off-by: Elliott Hughes <enh@google.com>
36cfb7
    Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
36cfb7
---
e138d9
 Makefile                                             | 2 +-
e138d9
 include/{ => uapi}/linux/atm.h                       | 0
e138d9
 include/{ => uapi}/linux/atmapi.h                    | 0
e138d9
 include/{ => uapi}/linux/atmarp.h                    | 0
e138d9
 include/{ => uapi}/linux/atmdev.h                    | 0
e138d9
 include/{ => uapi}/linux/atmioc.h                    | 0
e138d9
 include/{ => uapi}/linux/atmsap.h                    | 0
e138d9
 include/{ => uapi}/linux/bpf.h                       | 0
e138d9
 include/{ => uapi}/linux/bpf_common.h                | 0
e138d9
 include/{ => uapi}/linux/can.h                       | 0
e138d9
 include/{ => uapi}/linux/can/netlink.h               | 0
e138d9
 include/{ => uapi}/linux/can/vxcan.h                 | 0
e138d9
 include/{ => uapi}/linux/devlink.h                   | 0
e138d9
 include/{ => uapi}/linux/elf-em.h                    | 0
e138d9
 include/{ => uapi}/linux/fib_rules.h                 | 0
e138d9
 include/{ => uapi}/linux/filter.h                    | 0
e138d9
 include/{ => uapi}/linux/fou.h                       | 0
e138d9
 include/{ => uapi}/linux/gen_stats.h                 | 0
e138d9
 include/{ => uapi}/linux/genetlink.h                 | 0
e138d9
 include/{ => uapi}/linux/hdlc/ioctl.h                | 0
e138d9
 include/{ => uapi}/linux/icmpv6.h                    | 0
e138d9
 include/{ => uapi}/linux/if.h                        | 0
e138d9
 include/{ => uapi}/linux/if_addr.h                   | 0
e138d9
 include/{ => uapi}/linux/if_addrlabel.h              | 0
e138d9
 include/{ => uapi}/linux/if_alg.h                    | 0
e138d9
 include/{ => uapi}/linux/if_arp.h                    | 0
e138d9
 include/{ => uapi}/linux/if_bonding.h                | 0
e138d9
 include/{ => uapi}/linux/if_bridge.h                 | 0
e138d9
 include/{ => uapi}/linux/if_ether.h                  | 0
e138d9
 include/{ => uapi}/linux/if_link.h                   | 0
e138d9
 include/{ => uapi}/linux/if_macsec.h                 | 0
e138d9
 include/{ => uapi}/linux/if_packet.h                 | 0
e138d9
 include/{ => uapi}/linux/if_tun.h                    | 0
e138d9
 include/{ => uapi}/linux/if_tunnel.h                 | 0
e138d9
 include/{ => uapi}/linux/if_vlan.h                   | 0
e138d9
 include/{ => uapi}/linux/ife.h                       | 0
e138d9
 include/{ => uapi}/linux/ila.h                       | 0
e138d9
 include/{ => uapi}/linux/in.h                        | 0
e138d9
 include/{ => uapi}/linux/in6.h                       | 0
e138d9
 include/{ => uapi}/linux/in_route.h                  | 0
e138d9
 include/{ => uapi}/linux/inet_diag.h                 | 0
e138d9
 include/{ => uapi}/linux/ip.h                        | 0
e138d9
 include/{ => uapi}/linux/ip6_tunnel.h                | 0
e138d9
 include/{ => uapi}/linux/ipsec.h                     | 0
e138d9
 include/{ => uapi}/linux/kernel.h                    | 0
e138d9
 include/{ => uapi}/linux/l2tp.h                      | 0
e138d9
 include/{ => uapi}/linux/libc-compat.h               | 0
e138d9
 include/{ => uapi}/linux/limits.h                    | 0
e138d9
 include/{ => uapi}/linux/lwtunnel.h                  | 0
e138d9
 include/{ => uapi}/linux/magic.h                     | 0
e138d9
 include/{ => uapi}/linux/mpls.h                      | 0
e138d9
 include/{ => uapi}/linux/mpls_iptunnel.h             | 0
e138d9
 include/{ => uapi}/linux/neighbour.h                 | 0
e138d9
 include/{ => uapi}/linux/net_namespace.h             | 0
e138d9
 include/{ => uapi}/linux/netconf.h                   | 0
e138d9
 include/{ => uapi}/linux/netdevice.h                 | 0
e138d9
 include/{ => uapi}/linux/netfilter.h                 | 0
e138d9
 include/{ => uapi}/linux/netfilter/ipset/ip_set.h    | 0
e138d9
 include/{ => uapi}/linux/netfilter/x_tables.h        | 0
e138d9
 include/{ => uapi}/linux/netfilter/xt_set.h          | 0
e138d9
 include/{ => uapi}/linux/netfilter/xt_tcpudp.h       | 0
e138d9
 include/{ => uapi}/linux/netfilter_ipv4.h            | 0
e138d9
 include/{ => uapi}/linux/netfilter_ipv4/ip_tables.h  | 0
e138d9
 include/{ => uapi}/linux/netfilter_ipv6.h            | 0
e138d9
 include/{ => uapi}/linux/netfilter_ipv6/ip6_tables.h | 0
e138d9
 include/{ => uapi}/linux/netlink.h                   | 0
e138d9
 include/{ => uapi}/linux/netlink_diag.h              | 0
e138d9
 include/{ => uapi}/linux/packet_diag.h               | 0
e138d9
 include/{ => uapi}/linux/param.h                     | 0
e138d9
 include/{ => uapi}/linux/pfkeyv2.h                   | 0
e138d9
 include/{ => uapi}/linux/pkt_cls.h                   | 0
e138d9
 include/{ => uapi}/linux/pkt_sched.h                 | 0
e138d9
 include/{ => uapi}/linux/posix_types.h               | 0
e138d9
 include/{ => uapi}/linux/rtnetlink.h                 | 0
e138d9
 include/{ => uapi}/linux/sctp.h                      | 0
e138d9
 include/{ => uapi}/linux/seg6.h                      | 0
e138d9
 include/{ => uapi}/linux/seg6_genl.h                 | 0
e138d9
 include/{ => uapi}/linux/seg6_hmac.h                 | 0
e138d9
 include/{ => uapi}/linux/seg6_iptunnel.h             | 0
e138d9
 include/{ => uapi}/linux/seg6_local.h                | 0
e138d9
 include/{ => uapi}/linux/sock_diag.h                 | 0
e138d9
 include/{ => uapi}/linux/socket.h                    | 0
e138d9
 include/{ => uapi}/linux/sockios.h                   | 0
e138d9
 include/{ => uapi}/linux/stddef.h                    | 0
e138d9
 include/{ => uapi}/linux/sysinfo.h                   | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_bpf.h             | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_connmark.h        | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_csum.h            | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_defact.h          | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_gact.h            | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_ife.h             | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_ipt.h             | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_mirred.h          | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_nat.h             | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_pedit.h           | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_sample.h          | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_skbedit.h         | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_skbmod.h          | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_tunnel_key.h      | 0
e138d9
 include/{ => uapi}/linux/tc_act/tc_vlan.h            | 0
e138d9
 include/{ => uapi}/linux/tc_ematch/tc_em_cmp.h       | 0
e138d9
 include/{ => uapi}/linux/tc_ematch/tc_em_meta.h      | 0
e138d9
 include/{ => uapi}/linux/tc_ematch/tc_em_nbyte.h     | 0
e138d9
 include/{ => uapi}/linux/tcp.h                       | 0
e138d9
 include/{ => uapi}/linux/tcp_metrics.h               | 0
e138d9
 include/{ => uapi}/linux/tipc.h                      | 0
e138d9
 include/{ => uapi}/linux/tipc_netlink.h              | 0
e138d9
 include/{ => uapi}/linux/types.h                     | 0
e138d9
 include/{ => uapi}/linux/unix_diag.h                 | 0
e138d9
 include/{ => uapi}/linux/veth.h                      | 0
e138d9
 include/{ => uapi}/linux/xfrm.h                      | 0
e138d9
 111 files changed, 1 insertion(+), 1 deletion(-)
e138d9
 rename include/{ => uapi}/linux/atm.h (100%)
e138d9
 rename include/{ => uapi}/linux/atmapi.h (100%)
e138d9
 rename include/{ => uapi}/linux/atmarp.h (100%)
e138d9
 rename include/{ => uapi}/linux/atmdev.h (100%)
e138d9
 rename include/{ => uapi}/linux/atmioc.h (100%)
e138d9
 rename include/{ => uapi}/linux/atmsap.h (100%)
e138d9
 rename include/{ => uapi}/linux/bpf.h (100%)
e138d9
 rename include/{ => uapi}/linux/bpf_common.h (100%)
e138d9
 rename include/{ => uapi}/linux/can.h (100%)
e138d9
 rename include/{ => uapi}/linux/can/netlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/can/vxcan.h (100%)
e138d9
 rename include/{ => uapi}/linux/devlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/elf-em.h (100%)
e138d9
 rename include/{ => uapi}/linux/fib_rules.h (100%)
e138d9
 rename include/{ => uapi}/linux/filter.h (100%)
e138d9
 rename include/{ => uapi}/linux/fou.h (100%)
e138d9
 rename include/{ => uapi}/linux/gen_stats.h (100%)
e138d9
 rename include/{ => uapi}/linux/genetlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/hdlc/ioctl.h (100%)
e138d9
 rename include/{ => uapi}/linux/icmpv6.h (100%)
e138d9
 rename include/{ => uapi}/linux/if.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_addr.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_addrlabel.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_alg.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_arp.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_bonding.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_bridge.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_ether.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_link.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_macsec.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_packet.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_tun.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_tunnel.h (100%)
e138d9
 rename include/{ => uapi}/linux/if_vlan.h (100%)
e138d9
 rename include/{ => uapi}/linux/ife.h (100%)
e138d9
 rename include/{ => uapi}/linux/ila.h (100%)
e138d9
 rename include/{ => uapi}/linux/in.h (100%)
e138d9
 rename include/{ => uapi}/linux/in6.h (100%)
e138d9
 rename include/{ => uapi}/linux/in_route.h (100%)
e138d9
 rename include/{ => uapi}/linux/inet_diag.h (100%)
e138d9
 rename include/{ => uapi}/linux/ip.h (100%)
e138d9
 rename include/{ => uapi}/linux/ip6_tunnel.h (100%)
e138d9
 rename include/{ => uapi}/linux/ipsec.h (100%)
e138d9
 rename include/{ => uapi}/linux/kernel.h (100%)
e138d9
 rename include/{ => uapi}/linux/l2tp.h (100%)
e138d9
 rename include/{ => uapi}/linux/libc-compat.h (100%)
e138d9
 rename include/{ => uapi}/linux/limits.h (100%)
e138d9
 rename include/{ => uapi}/linux/lwtunnel.h (100%)
e138d9
 rename include/{ => uapi}/linux/magic.h (100%)
e138d9
 rename include/{ => uapi}/linux/mpls.h (100%)
e138d9
 rename include/{ => uapi}/linux/mpls_iptunnel.h (100%)
e138d9
 rename include/{ => uapi}/linux/neighbour.h (100%)
e138d9
 rename include/{ => uapi}/linux/net_namespace.h (100%)
e138d9
 rename include/{ => uapi}/linux/netconf.h (100%)
e138d9
 rename include/{ => uapi}/linux/netdevice.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter/ipset/ip_set.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter/x_tables.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter/xt_set.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter/xt_tcpudp.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter_ipv4.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter_ipv4/ip_tables.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter_ipv6.h (100%)
e138d9
 rename include/{ => uapi}/linux/netfilter_ipv6/ip6_tables.h (100%)
e138d9
 rename include/{ => uapi}/linux/netlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/netlink_diag.h (100%)
e138d9
 rename include/{ => uapi}/linux/packet_diag.h (100%)
e138d9
 rename include/{ => uapi}/linux/param.h (100%)
e138d9
 rename include/{ => uapi}/linux/pfkeyv2.h (100%)
e138d9
 rename include/{ => uapi}/linux/pkt_cls.h (100%)
e138d9
 rename include/{ => uapi}/linux/pkt_sched.h (100%)
e138d9
 rename include/{ => uapi}/linux/posix_types.h (100%)
e138d9
 rename include/{ => uapi}/linux/rtnetlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/sctp.h (100%)
e138d9
 rename include/{ => uapi}/linux/seg6.h (100%)
e138d9
 rename include/{ => uapi}/linux/seg6_genl.h (100%)
e138d9
 rename include/{ => uapi}/linux/seg6_hmac.h (100%)
e138d9
 rename include/{ => uapi}/linux/seg6_iptunnel.h (100%)
e138d9
 rename include/{ => uapi}/linux/seg6_local.h (100%)
e138d9
 rename include/{ => uapi}/linux/sock_diag.h (100%)
e138d9
 rename include/{ => uapi}/linux/socket.h (100%)
e138d9
 rename include/{ => uapi}/linux/sockios.h (100%)
e138d9
 rename include/{ => uapi}/linux/stddef.h (100%)
e138d9
 rename include/{ => uapi}/linux/sysinfo.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_bpf.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_connmark.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_csum.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_defact.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_gact.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_ife.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_ipt.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_mirred.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_nat.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_pedit.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_sample.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_skbedit.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_skbmod.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_tunnel_key.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_act/tc_vlan.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_ematch/tc_em_cmp.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_ematch/tc_em_meta.h (100%)
e138d9
 rename include/{ => uapi}/linux/tc_ematch/tc_em_nbyte.h (100%)
e138d9
 rename include/{ => uapi}/linux/tcp.h (100%)
e138d9
 rename include/{ => uapi}/linux/tcp_metrics.h (100%)
e138d9
 rename include/{ => uapi}/linux/tipc.h (100%)
e138d9
 rename include/{ => uapi}/linux/tipc_netlink.h (100%)
e138d9
 rename include/{ => uapi}/linux/types.h (100%)
e138d9
 rename include/{ => uapi}/linux/unix_diag.h (100%)
e138d9
 rename include/{ => uapi}/linux/veth.h (100%)
e138d9
 rename include/{ => uapi}/linux/xfrm.h (100%)
36cfb7
36cfb7
diff --git a/Makefile b/Makefile
e138d9
index 18de7dcb315b1..df2fa33630e65 100644
36cfb7
--- a/Makefile
36cfb7
+++ b/Makefile
36cfb7
@@ -49,7 +49,7 @@ CCOPTS = -O2
36cfb7
 WFLAGS := -Wall -Wstrict-prototypes  -Wmissing-prototypes
36cfb7
 WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2
36cfb7
 
36cfb7
-CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS)
36cfb7
+CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS)
36cfb7
 YACCFLAGS = -d -t -v
36cfb7
 
36cfb7
 SUBDIRS=lib ip tc bridge misc netem genl tipc devlink man
e138d9
diff --git a/include/linux/atm.h b/include/uapi/linux/atm.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atm.h
e138d9
rename to include/uapi/linux/atm.h
e138d9
diff --git a/include/linux/atmapi.h b/include/uapi/linux/atmapi.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atmapi.h
e138d9
rename to include/uapi/linux/atmapi.h
e138d9
diff --git a/include/linux/atmarp.h b/include/uapi/linux/atmarp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atmarp.h
e138d9
rename to include/uapi/linux/atmarp.h
e138d9
diff --git a/include/linux/atmdev.h b/include/uapi/linux/atmdev.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atmdev.h
e138d9
rename to include/uapi/linux/atmdev.h
e138d9
diff --git a/include/linux/atmioc.h b/include/uapi/linux/atmioc.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atmioc.h
e138d9
rename to include/uapi/linux/atmioc.h
e138d9
diff --git a/include/linux/atmsap.h b/include/uapi/linux/atmsap.h
e138d9
similarity index 100%
e138d9
rename from include/linux/atmsap.h
e138d9
rename to include/uapi/linux/atmsap.h
e138d9
diff --git a/include/linux/bpf.h b/include/uapi/linux/bpf.h
e138d9
similarity index 100%
e138d9
rename from include/linux/bpf.h
e138d9
rename to include/uapi/linux/bpf.h
e138d9
diff --git a/include/linux/bpf_common.h b/include/uapi/linux/bpf_common.h
e138d9
similarity index 100%
e138d9
rename from include/linux/bpf_common.h
e138d9
rename to include/uapi/linux/bpf_common.h
e138d9
diff --git a/include/linux/can.h b/include/uapi/linux/can.h
e138d9
similarity index 100%
e138d9
rename from include/linux/can.h
e138d9
rename to include/uapi/linux/can.h
e138d9
diff --git a/include/linux/can/netlink.h b/include/uapi/linux/can/netlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/can/netlink.h
e138d9
rename to include/uapi/linux/can/netlink.h
e138d9
diff --git a/include/linux/can/vxcan.h b/include/uapi/linux/can/vxcan.h
e138d9
similarity index 100%
e138d9
rename from include/linux/can/vxcan.h
e138d9
rename to include/uapi/linux/can/vxcan.h
e138d9
diff --git a/include/linux/devlink.h b/include/uapi/linux/devlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/devlink.h
e138d9
rename to include/uapi/linux/devlink.h
e138d9
diff --git a/include/linux/elf-em.h b/include/uapi/linux/elf-em.h
e138d9
similarity index 100%
e138d9
rename from include/linux/elf-em.h
e138d9
rename to include/uapi/linux/elf-em.h
e138d9
diff --git a/include/linux/fib_rules.h b/include/uapi/linux/fib_rules.h
e138d9
similarity index 100%
e138d9
rename from include/linux/fib_rules.h
e138d9
rename to include/uapi/linux/fib_rules.h
e138d9
diff --git a/include/linux/filter.h b/include/uapi/linux/filter.h
e138d9
similarity index 100%
e138d9
rename from include/linux/filter.h
e138d9
rename to include/uapi/linux/filter.h
e138d9
diff --git a/include/linux/fou.h b/include/uapi/linux/fou.h
e138d9
similarity index 100%
e138d9
rename from include/linux/fou.h
e138d9
rename to include/uapi/linux/fou.h
e138d9
diff --git a/include/linux/gen_stats.h b/include/uapi/linux/gen_stats.h
e138d9
similarity index 100%
e138d9
rename from include/linux/gen_stats.h
e138d9
rename to include/uapi/linux/gen_stats.h
e138d9
diff --git a/include/linux/genetlink.h b/include/uapi/linux/genetlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/genetlink.h
e138d9
rename to include/uapi/linux/genetlink.h
e138d9
diff --git a/include/linux/hdlc/ioctl.h b/include/uapi/linux/hdlc/ioctl.h
e138d9
similarity index 100%
e138d9
rename from include/linux/hdlc/ioctl.h
e138d9
rename to include/uapi/linux/hdlc/ioctl.h
e138d9
diff --git a/include/linux/icmpv6.h b/include/uapi/linux/icmpv6.h
e138d9
similarity index 100%
e138d9
rename from include/linux/icmpv6.h
e138d9
rename to include/uapi/linux/icmpv6.h
e138d9
diff --git a/include/linux/if.h b/include/uapi/linux/if.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if.h
e138d9
rename to include/uapi/linux/if.h
e138d9
diff --git a/include/linux/if_addr.h b/include/uapi/linux/if_addr.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_addr.h
e138d9
rename to include/uapi/linux/if_addr.h
e138d9
diff --git a/include/linux/if_addrlabel.h b/include/uapi/linux/if_addrlabel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_addrlabel.h
e138d9
rename to include/uapi/linux/if_addrlabel.h
e138d9
diff --git a/include/linux/if_alg.h b/include/uapi/linux/if_alg.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_alg.h
e138d9
rename to include/uapi/linux/if_alg.h
e138d9
diff --git a/include/linux/if_arp.h b/include/uapi/linux/if_arp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_arp.h
e138d9
rename to include/uapi/linux/if_arp.h
e138d9
diff --git a/include/linux/if_bonding.h b/include/uapi/linux/if_bonding.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_bonding.h
e138d9
rename to include/uapi/linux/if_bonding.h
e138d9
diff --git a/include/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_bridge.h
e138d9
rename to include/uapi/linux/if_bridge.h
e138d9
diff --git a/include/linux/if_ether.h b/include/uapi/linux/if_ether.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_ether.h
e138d9
rename to include/uapi/linux/if_ether.h
e138d9
diff --git a/include/linux/if_link.h b/include/uapi/linux/if_link.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_link.h
e138d9
rename to include/uapi/linux/if_link.h
e138d9
diff --git a/include/linux/if_macsec.h b/include/uapi/linux/if_macsec.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_macsec.h
e138d9
rename to include/uapi/linux/if_macsec.h
e138d9
diff --git a/include/linux/if_packet.h b/include/uapi/linux/if_packet.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_packet.h
e138d9
rename to include/uapi/linux/if_packet.h
e138d9
diff --git a/include/linux/if_tun.h b/include/uapi/linux/if_tun.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_tun.h
e138d9
rename to include/uapi/linux/if_tun.h
e138d9
diff --git a/include/linux/if_tunnel.h b/include/uapi/linux/if_tunnel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_tunnel.h
e138d9
rename to include/uapi/linux/if_tunnel.h
e138d9
diff --git a/include/linux/if_vlan.h b/include/uapi/linux/if_vlan.h
e138d9
similarity index 100%
e138d9
rename from include/linux/if_vlan.h
e138d9
rename to include/uapi/linux/if_vlan.h
e138d9
diff --git a/include/linux/ife.h b/include/uapi/linux/ife.h
e138d9
similarity index 100%
e138d9
rename from include/linux/ife.h
e138d9
rename to include/uapi/linux/ife.h
e138d9
diff --git a/include/linux/ila.h b/include/uapi/linux/ila.h
e138d9
similarity index 100%
e138d9
rename from include/linux/ila.h
e138d9
rename to include/uapi/linux/ila.h
e138d9
diff --git a/include/linux/in.h b/include/uapi/linux/in.h
e138d9
similarity index 100%
e138d9
rename from include/linux/in.h
e138d9
rename to include/uapi/linux/in.h
e138d9
diff --git a/include/linux/in6.h b/include/uapi/linux/in6.h
e138d9
similarity index 100%
e138d9
rename from include/linux/in6.h
e138d9
rename to include/uapi/linux/in6.h
e138d9
diff --git a/include/linux/in_route.h b/include/uapi/linux/in_route.h
e138d9
similarity index 100%
e138d9
rename from include/linux/in_route.h
e138d9
rename to include/uapi/linux/in_route.h
e138d9
diff --git a/include/linux/inet_diag.h b/include/uapi/linux/inet_diag.h
e138d9
similarity index 100%
e138d9
rename from include/linux/inet_diag.h
e138d9
rename to include/uapi/linux/inet_diag.h
e138d9
diff --git a/include/linux/ip.h b/include/uapi/linux/ip.h
e138d9
similarity index 100%
e138d9
rename from include/linux/ip.h
e138d9
rename to include/uapi/linux/ip.h
e138d9
diff --git a/include/linux/ip6_tunnel.h b/include/uapi/linux/ip6_tunnel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/ip6_tunnel.h
e138d9
rename to include/uapi/linux/ip6_tunnel.h
e138d9
diff --git a/include/linux/ipsec.h b/include/uapi/linux/ipsec.h
e138d9
similarity index 100%
e138d9
rename from include/linux/ipsec.h
e138d9
rename to include/uapi/linux/ipsec.h
e138d9
diff --git a/include/linux/kernel.h b/include/uapi/linux/kernel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/kernel.h
e138d9
rename to include/uapi/linux/kernel.h
e138d9
diff --git a/include/linux/l2tp.h b/include/uapi/linux/l2tp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/l2tp.h
e138d9
rename to include/uapi/linux/l2tp.h
e138d9
diff --git a/include/linux/libc-compat.h b/include/uapi/linux/libc-compat.h
e138d9
similarity index 100%
e138d9
rename from include/linux/libc-compat.h
e138d9
rename to include/uapi/linux/libc-compat.h
e138d9
diff --git a/include/linux/limits.h b/include/uapi/linux/limits.h
e138d9
similarity index 100%
e138d9
rename from include/linux/limits.h
e138d9
rename to include/uapi/linux/limits.h
e138d9
diff --git a/include/linux/lwtunnel.h b/include/uapi/linux/lwtunnel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/lwtunnel.h
e138d9
rename to include/uapi/linux/lwtunnel.h
e138d9
diff --git a/include/linux/magic.h b/include/uapi/linux/magic.h
e138d9
similarity index 100%
e138d9
rename from include/linux/magic.h
e138d9
rename to include/uapi/linux/magic.h
e138d9
diff --git a/include/linux/mpls.h b/include/uapi/linux/mpls.h
e138d9
similarity index 100%
e138d9
rename from include/linux/mpls.h
e138d9
rename to include/uapi/linux/mpls.h
e138d9
diff --git a/include/linux/mpls_iptunnel.h b/include/uapi/linux/mpls_iptunnel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/mpls_iptunnel.h
e138d9
rename to include/uapi/linux/mpls_iptunnel.h
e138d9
diff --git a/include/linux/neighbour.h b/include/uapi/linux/neighbour.h
e138d9
similarity index 100%
e138d9
rename from include/linux/neighbour.h
e138d9
rename to include/uapi/linux/neighbour.h
e138d9
diff --git a/include/linux/net_namespace.h b/include/uapi/linux/net_namespace.h
e138d9
similarity index 100%
e138d9
rename from include/linux/net_namespace.h
e138d9
rename to include/uapi/linux/net_namespace.h
e138d9
diff --git a/include/linux/netconf.h b/include/uapi/linux/netconf.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netconf.h
e138d9
rename to include/uapi/linux/netconf.h
e138d9
diff --git a/include/linux/netdevice.h b/include/uapi/linux/netdevice.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netdevice.h
e138d9
rename to include/uapi/linux/netdevice.h
e138d9
diff --git a/include/linux/netfilter.h b/include/uapi/linux/netfilter.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter.h
e138d9
rename to include/uapi/linux/netfilter.h
e138d9
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/uapi/linux/netfilter/ipset/ip_set.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter/ipset/ip_set.h
e138d9
rename to include/uapi/linux/netfilter/ipset/ip_set.h
e138d9
diff --git a/include/linux/netfilter/x_tables.h b/include/uapi/linux/netfilter/x_tables.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter/x_tables.h
e138d9
rename to include/uapi/linux/netfilter/x_tables.h
e138d9
diff --git a/include/linux/netfilter/xt_set.h b/include/uapi/linux/netfilter/xt_set.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter/xt_set.h
e138d9
rename to include/uapi/linux/netfilter/xt_set.h
e138d9
diff --git a/include/linux/netfilter/xt_tcpudp.h b/include/uapi/linux/netfilter/xt_tcpudp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter/xt_tcpudp.h
e138d9
rename to include/uapi/linux/netfilter/xt_tcpudp.h
e138d9
diff --git a/include/linux/netfilter_ipv4.h b/include/uapi/linux/netfilter_ipv4.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter_ipv4.h
e138d9
rename to include/uapi/linux/netfilter_ipv4.h
e138d9
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/uapi/linux/netfilter_ipv4/ip_tables.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter_ipv4/ip_tables.h
e138d9
rename to include/uapi/linux/netfilter_ipv4/ip_tables.h
e138d9
diff --git a/include/linux/netfilter_ipv6.h b/include/uapi/linux/netfilter_ipv6.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter_ipv6.h
e138d9
rename to include/uapi/linux/netfilter_ipv6.h
e138d9
diff --git a/include/linux/netfilter_ipv6/ip6_tables.h b/include/uapi/linux/netfilter_ipv6/ip6_tables.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netfilter_ipv6/ip6_tables.h
e138d9
rename to include/uapi/linux/netfilter_ipv6/ip6_tables.h
e138d9
diff --git a/include/linux/netlink.h b/include/uapi/linux/netlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netlink.h
e138d9
rename to include/uapi/linux/netlink.h
e138d9
diff --git a/include/linux/netlink_diag.h b/include/uapi/linux/netlink_diag.h
e138d9
similarity index 100%
e138d9
rename from include/linux/netlink_diag.h
e138d9
rename to include/uapi/linux/netlink_diag.h
e138d9
diff --git a/include/linux/packet_diag.h b/include/uapi/linux/packet_diag.h
e138d9
similarity index 100%
e138d9
rename from include/linux/packet_diag.h
e138d9
rename to include/uapi/linux/packet_diag.h
e138d9
diff --git a/include/linux/param.h b/include/uapi/linux/param.h
e138d9
similarity index 100%
e138d9
rename from include/linux/param.h
e138d9
rename to include/uapi/linux/param.h
e138d9
diff --git a/include/linux/pfkeyv2.h b/include/uapi/linux/pfkeyv2.h
e138d9
similarity index 100%
e138d9
rename from include/linux/pfkeyv2.h
e138d9
rename to include/uapi/linux/pfkeyv2.h
e138d9
diff --git a/include/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
e138d9
similarity index 100%
e138d9
rename from include/linux/pkt_cls.h
e138d9
rename to include/uapi/linux/pkt_cls.h
e138d9
diff --git a/include/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h
e138d9
similarity index 100%
e138d9
rename from include/linux/pkt_sched.h
e138d9
rename to include/uapi/linux/pkt_sched.h
e138d9
diff --git a/include/linux/posix_types.h b/include/uapi/linux/posix_types.h
e138d9
similarity index 100%
e138d9
rename from include/linux/posix_types.h
e138d9
rename to include/uapi/linux/posix_types.h
e138d9
diff --git a/include/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/rtnetlink.h
e138d9
rename to include/uapi/linux/rtnetlink.h
e138d9
diff --git a/include/linux/sctp.h b/include/uapi/linux/sctp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/sctp.h
e138d9
rename to include/uapi/linux/sctp.h
e138d9
diff --git a/include/linux/seg6.h b/include/uapi/linux/seg6.h
e138d9
similarity index 100%
e138d9
rename from include/linux/seg6.h
e138d9
rename to include/uapi/linux/seg6.h
e138d9
diff --git a/include/linux/seg6_genl.h b/include/uapi/linux/seg6_genl.h
e138d9
similarity index 100%
e138d9
rename from include/linux/seg6_genl.h
e138d9
rename to include/uapi/linux/seg6_genl.h
e138d9
diff --git a/include/linux/seg6_hmac.h b/include/uapi/linux/seg6_hmac.h
e138d9
similarity index 100%
e138d9
rename from include/linux/seg6_hmac.h
e138d9
rename to include/uapi/linux/seg6_hmac.h
e138d9
diff --git a/include/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
e138d9
similarity index 100%
e138d9
rename from include/linux/seg6_iptunnel.h
e138d9
rename to include/uapi/linux/seg6_iptunnel.h
e138d9
diff --git a/include/linux/seg6_local.h b/include/uapi/linux/seg6_local.h
e138d9
similarity index 100%
e138d9
rename from include/linux/seg6_local.h
e138d9
rename to include/uapi/linux/seg6_local.h
e138d9
diff --git a/include/linux/sock_diag.h b/include/uapi/linux/sock_diag.h
e138d9
similarity index 100%
e138d9
rename from include/linux/sock_diag.h
e138d9
rename to include/uapi/linux/sock_diag.h
e138d9
diff --git a/include/linux/socket.h b/include/uapi/linux/socket.h
e138d9
similarity index 100%
e138d9
rename from include/linux/socket.h
e138d9
rename to include/uapi/linux/socket.h
e138d9
diff --git a/include/linux/sockios.h b/include/uapi/linux/sockios.h
e138d9
similarity index 100%
e138d9
rename from include/linux/sockios.h
e138d9
rename to include/uapi/linux/sockios.h
e138d9
diff --git a/include/linux/stddef.h b/include/uapi/linux/stddef.h
e138d9
similarity index 100%
e138d9
rename from include/linux/stddef.h
e138d9
rename to include/uapi/linux/stddef.h
e138d9
diff --git a/include/linux/sysinfo.h b/include/uapi/linux/sysinfo.h
e138d9
similarity index 100%
e138d9
rename from include/linux/sysinfo.h
e138d9
rename to include/uapi/linux/sysinfo.h
e138d9
diff --git a/include/linux/tc_act/tc_bpf.h b/include/uapi/linux/tc_act/tc_bpf.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_bpf.h
e138d9
rename to include/uapi/linux/tc_act/tc_bpf.h
e138d9
diff --git a/include/linux/tc_act/tc_connmark.h b/include/uapi/linux/tc_act/tc_connmark.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_connmark.h
e138d9
rename to include/uapi/linux/tc_act/tc_connmark.h
e138d9
diff --git a/include/linux/tc_act/tc_csum.h b/include/uapi/linux/tc_act/tc_csum.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_csum.h
e138d9
rename to include/uapi/linux/tc_act/tc_csum.h
e138d9
diff --git a/include/linux/tc_act/tc_defact.h b/include/uapi/linux/tc_act/tc_defact.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_defact.h
e138d9
rename to include/uapi/linux/tc_act/tc_defact.h
e138d9
diff --git a/include/linux/tc_act/tc_gact.h b/include/uapi/linux/tc_act/tc_gact.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_gact.h
e138d9
rename to include/uapi/linux/tc_act/tc_gact.h
e138d9
diff --git a/include/linux/tc_act/tc_ife.h b/include/uapi/linux/tc_act/tc_ife.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_ife.h
e138d9
rename to include/uapi/linux/tc_act/tc_ife.h
e138d9
diff --git a/include/linux/tc_act/tc_ipt.h b/include/uapi/linux/tc_act/tc_ipt.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_ipt.h
e138d9
rename to include/uapi/linux/tc_act/tc_ipt.h
e138d9
diff --git a/include/linux/tc_act/tc_mirred.h b/include/uapi/linux/tc_act/tc_mirred.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_mirred.h
e138d9
rename to include/uapi/linux/tc_act/tc_mirred.h
e138d9
diff --git a/include/linux/tc_act/tc_nat.h b/include/uapi/linux/tc_act/tc_nat.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_nat.h
e138d9
rename to include/uapi/linux/tc_act/tc_nat.h
e138d9
diff --git a/include/linux/tc_act/tc_pedit.h b/include/uapi/linux/tc_act/tc_pedit.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_pedit.h
e138d9
rename to include/uapi/linux/tc_act/tc_pedit.h
e138d9
diff --git a/include/linux/tc_act/tc_sample.h b/include/uapi/linux/tc_act/tc_sample.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_sample.h
e138d9
rename to include/uapi/linux/tc_act/tc_sample.h
e138d9
diff --git a/include/linux/tc_act/tc_skbedit.h b/include/uapi/linux/tc_act/tc_skbedit.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_skbedit.h
e138d9
rename to include/uapi/linux/tc_act/tc_skbedit.h
e138d9
diff --git a/include/linux/tc_act/tc_skbmod.h b/include/uapi/linux/tc_act/tc_skbmod.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_skbmod.h
e138d9
rename to include/uapi/linux/tc_act/tc_skbmod.h
e138d9
diff --git a/include/linux/tc_act/tc_tunnel_key.h b/include/uapi/linux/tc_act/tc_tunnel_key.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_tunnel_key.h
e138d9
rename to include/uapi/linux/tc_act/tc_tunnel_key.h
e138d9
diff --git a/include/linux/tc_act/tc_vlan.h b/include/uapi/linux/tc_act/tc_vlan.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_act/tc_vlan.h
e138d9
rename to include/uapi/linux/tc_act/tc_vlan.h
e138d9
diff --git a/include/linux/tc_ematch/tc_em_cmp.h b/include/uapi/linux/tc_ematch/tc_em_cmp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_ematch/tc_em_cmp.h
e138d9
rename to include/uapi/linux/tc_ematch/tc_em_cmp.h
e138d9
diff --git a/include/linux/tc_ematch/tc_em_meta.h b/include/uapi/linux/tc_ematch/tc_em_meta.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_ematch/tc_em_meta.h
e138d9
rename to include/uapi/linux/tc_ematch/tc_em_meta.h
e138d9
diff --git a/include/linux/tc_ematch/tc_em_nbyte.h b/include/uapi/linux/tc_ematch/tc_em_nbyte.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tc_ematch/tc_em_nbyte.h
e138d9
rename to include/uapi/linux/tc_ematch/tc_em_nbyte.h
e138d9
diff --git a/include/linux/tcp.h b/include/uapi/linux/tcp.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tcp.h
e138d9
rename to include/uapi/linux/tcp.h
e138d9
diff --git a/include/linux/tcp_metrics.h b/include/uapi/linux/tcp_metrics.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tcp_metrics.h
e138d9
rename to include/uapi/linux/tcp_metrics.h
e138d9
diff --git a/include/linux/tipc.h b/include/uapi/linux/tipc.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tipc.h
e138d9
rename to include/uapi/linux/tipc.h
e138d9
diff --git a/include/linux/tipc_netlink.h b/include/uapi/linux/tipc_netlink.h
e138d9
similarity index 100%
e138d9
rename from include/linux/tipc_netlink.h
e138d9
rename to include/uapi/linux/tipc_netlink.h
e138d9
diff --git a/include/linux/types.h b/include/uapi/linux/types.h
e138d9
similarity index 100%
e138d9
rename from include/linux/types.h
e138d9
rename to include/uapi/linux/types.h
e138d9
diff --git a/include/linux/unix_diag.h b/include/uapi/linux/unix_diag.h
e138d9
similarity index 100%
e138d9
rename from include/linux/unix_diag.h
e138d9
rename to include/uapi/linux/unix_diag.h
e138d9
diff --git a/include/linux/veth.h b/include/uapi/linux/veth.h
e138d9
similarity index 100%
e138d9
rename from include/linux/veth.h
e138d9
rename to include/uapi/linux/veth.h
e138d9
diff --git a/include/linux/xfrm.h b/include/uapi/linux/xfrm.h
e138d9
similarity index 100%
e138d9
rename from include/linux/xfrm.h
e138d9
rename to include/uapi/linux/xfrm.h
36cfb7
-- 
e138d9
2.21.0
36cfb7