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.
Showing the changes to include/uapi/linux (4 of 4 files). Show all
Unified · Split
| @@ -379,6 +379,10 @@ header-y += sctp.h · 378 unmodified lines | |||
| 379 | header-y += sdla.h | 379 | header-y += sdla.h |
| 380 | header-y += seccomp.h | 380 | header-y += seccomp.h |
| 381 | header-y += securebits.h | 381 | 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 | ||
| 382 | header-y += selinux_netlink.h | 386 | header-y += selinux_netlink.h |
| 383 | header-y += sem.h | 387 | header-y += sem.h |
| 384 | header-y += serial_core.h | 388 | header-y += serial_core.h |
| @@ -14,6 +14,8 @@ · 13 unmodified lines | |||
| 14 | #ifndef _UAPI_LINUX_SEG6_H | 14 | #ifndef _UAPI_LINUX_SEG6_H |
| 15 | #define _UAPI_LINUX_SEG6_H | 15 | #define _UAPI_LINUX_SEG6_H |
| 16 | 16 | ||
| 17 | #include <linux/types.h> | ||
| 18 | |||
| 17 | /* | 19 | /* |
| 18 | * SRH | 20 | * SRH |
| 19 | */ | 21 | */ |
| @@ -1,6 +1,7 @@ | |||
| 1 | #ifndef _UAPI_LINUX_SEG6_HMAC_H | 1 | #ifndef _UAPI_LINUX_SEG6_HMAC_H |
| 2 | #define _UAPI_LINUX_SEG6_HMAC_H | 2 | #define _UAPI_LINUX_SEG6_HMAC_H |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | ||
| 4 | #include <linux/seg6.h> | 5 | #include <linux/seg6.h> |
| 5 | 6 | ||
| 6 | #define SEG6_HMAC_SECRET_LEN 64 | 7 | #define SEG6_HMAC_SECRET_LEN 64 |
| @@ -33,6 +33,8 @@ enum { · 32 unmodified lines | |||
| 33 | SEG6_IPTUN_MODE_ENCAP, | 33 | SEG6_IPTUN_MODE_ENCAP, |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | #ifdef __KERNEL__ | ||
| 37 | |||
| 36 | static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) | 38 | static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo) |
| 37 | { | 39 | { |
| 38 | int encap = (tuninfo->mode == SEG6_IPTUN_MODE_ENCAP); | 40 | 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 | |||
| 42 | } | 44 | } |
| 43 | 45 | ||
| 44 | #endif | 46 | #endif |
| 47 | |||
| 48 | #endif | ||