Skip to content

Commit a50a05f

Browse files
David Lebrundavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2d071c6 commit a50a05f

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

include/uapi/linux/Kbuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ header-y += sctp.h
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ enum {
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)
4244
}
4345

4446
#endif
47+
48+
#endif

0 commit comments

Comments
 (0)