summaryrefslogtreecommitdiff
path: root/include/uapi/linux/seg6_iptunnel.h
diff options
context:
space:
mode:
authorDavid Lebrun <david.lebrun@uclouvain.be>2017-01-15 17:26:16 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-16 22:47:21 +0300
commita50a05f497a2a6e772900ffe93246fb7243d86d8 (patch)
tree209347632f774b96060d5d61cb2f3a84ec2af54b /include/uapi/linux/seg6_iptunnel.h
parent2d071c643f1cd15a24172de4b5b7ae2adb93abbb (diff)
downloadlinux-a50a05f497a2a6e772900ffe93246fb7243d86d8.tar.xz
ipv6: sr: add missing Kbuild export for header files
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>
Diffstat (limited to 'include/uapi/linux/seg6_iptunnel.h')
-rw-r--r--include/uapi/linux/seg6_iptunnel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
index 0f7dbd280a9c..7a7183d4062a 100644
--- a/include/uapi/linux/seg6_iptunnel.h
+++ b/include/uapi/linux/seg6_iptunnel.h
@@ -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