summaryrefslogtreecommitdiffstats
path: root/net/ipv6/seg6_local.c
diff options
context:
space:
mode:
authorMathieu Xhonneux <m.xhonneux@gmail.com>2018-05-20 15:58:12 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-24 11:57:35 +0200
commit63526e1c805b5a8992d25386d315009fcabac8e2 (patch)
treebc158b00bb685e67ded946735845a3573bcf0e01 /net/ipv6/seg6_local.c
parentMerge branch 'bpf-multi-prog-improvements' (diff)
downloadlinux-63526e1c805b5a8992d25386d315009fcabac8e2.tar.xz
linux-63526e1c805b5a8992d25386d315009fcabac8e2.zip
ipv6: sr: make seg6.h includable without IPv6
include/net/seg6.h cannot be included in a source file if CONFIG_IPV6 is not enabled: include/net/seg6.h: In function 'seg6_pernet': >> include/net/seg6.h:52:14: error: 'struct net' has no member named 'ipv6'; did you mean 'ipv4'? return net->ipv6.seg6_data; ^~~~ ipv4 This commit makes seg6_pernet return NULL if IPv6 is not compiled, hence allowing seg6.h to be included regardless of the configuration. Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/ipv6/seg6_local.c')
0 files changed, 0 insertions, 0 deletions