History

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.

David Lebrun committed 9 years ago

Commit a50a05f1 parent 2d071c64 files · +11 −0Browse files

Showing the changes to include/uapi/linux (4 of 4 files). Show all

Unified · Split

4 files
  1. include/uapi/linux/Kbuild +4 −0
  2. include/uapi/linux/seg6.h +2 −0
  3. include/uapi/linux/seg6_hmac.h +1 −0
  4. include/uapi/linux/seg6_iptunnel.h +4 −0
include/uapi/linux/Kbuild+4−0
@@ -379,6 +379,10 @@ header-y += sctp.h · 378 unmodified lines
379379 header-y += sdla.h
380380 header-y += seccomp.h
381381 header-y += securebits.h
382+header-y += seg6_genl.h
383+header-y += seg6.h
384+header-y += seg6_hmac.h
385+header-y += seg6_iptunnel.h
382386 header-y += selinux_netlink.h
383387 header-y += sem.h
384388 header-y += serial_core.h
include/uapi/linux/seg6.h+2−0
@@ -14,6 +14,8 @@ · 13 unmodified lines
1414 #ifndef _UAPI_LINUX_SEG6_H
1515 #define _UAPI_LINUX_SEG6_H
1616
17+#include <linux/types.h>
18+
1719 /*
1820 * SRH
1921 */
include/uapi/linux/seg6_hmac.h+1−0
@@ -1,6 +1,7 @@
11 #ifndef _UAPI_LINUX_SEG6_HMAC_H
22 #define _UAPI_LINUX_SEG6_HMAC_H
33
4+#include <linux/types.h>
45 #include <linux/seg6.h>
56
67 #define SEG6_HMAC_SECRET_LEN 64
include/uapi/linux/seg6_iptunnel.h+4−0
@@ -33,6 +33,8 @@ enum { · 32 unmodified lines
3333 SEG6_IPTUN_MODE_ENCAP,
3434 };
3535
36+#ifdef __KERNEL__
37+
3638 static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
3739 {
3840 int encap = (tuninfo->mode == SEG6_IPTUN_MODE_ENCAP);
@@ -42,3 +44,5 @@ static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) · 3 unmodified lines
4244 }
4345
4446 #endif
47+
48+#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t