linma / rpms / iproute

Forked from rpms/iproute 4 years ago
Clone

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

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