ipv6: sr: add missing Kbuild export for header files
authorDavid Lebrun <david.lebrun@uclouvain.be>
Sun, 15 Jan 2017 14:26:16 +0000 (15:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 19:47:21 +0000 (14:47 -0500)
Add missing IPv6-SR header files in include/uapi/linux/Kbuild.

Also, prevent seg6_lwt_headroom() from being exported and add
missing linux/types.h include.

Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/Kbuild
include/uapi/linux/seg6.h
include/uapi/linux/seg6_hmac.h
include/uapi/linux/seg6_iptunnel.h

index f330ba4547cfd4c59da3d8f309e4ab76d8bd8b40..e600b50be77e8757eebeddca15b14f2dc2825954 100644 (file)
@@ -379,6 +379,10 @@ header-y += sctp.h
 header-y += sdla.h
 header-y += seccomp.h
 header-y += securebits.h
+header-y += seg6_genl.h
+header-y += seg6.h
+header-y += seg6_hmac.h
+header-y += seg6_iptunnel.h
 header-y += selinux_netlink.h
 header-y += sem.h
 header-y += serial_core.h
index c396a8052f73cd91c12b676733f93b68416cd50a..33496595064c1e5a7b656e06347aae5ef4e54562 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef _UAPI_LINUX_SEG6_H
 #define _UAPI_LINUX_SEG6_H
 
+#include <linux/types.h>
+
 /*
  * SRH
  */
index b652dfd51bc5f9db3f8c624f275c1c03edc56019..e691c753fc3f379645f8ba82e74fcc6d34552881 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _UAPI_LINUX_SEG6_HMAC_H
 #define _UAPI_LINUX_SEG6_HMAC_H
 
+#include <linux/types.h>
 #include <linux/seg6.h>
 
 #define SEG6_HMAC_SECRET_LEN   64
index 0f7dbd280a9c6492835862a812333e270ed273db..7a7183d4062af9788fd7358278d74d83aef70b18 100644 (file)
@@ -33,6 +33,8 @@ enum {
        SEG6_IPTUN_MODE_ENCAP,
 };
 
+#ifdef __KERNEL__
+
 static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
 {
        int encap = (tuninfo->mode == SEG6_IPTUN_MODE_ENCAP);
@@ -42,3 +44,5 @@ static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
 }
 
 #endif
+
+#endif