]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
samples/bpf: add missing <linux/if_vlan.h>
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 4 Jul 2018 13:36:36 +0000 (22:36 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 5 Jul 2018 07:58:52 +0000 (09:58 +0200)
commit4d5d33a085335ef469c9a87792bcaaaa8e64d8c4
tree7a9235f7f6836daeae60d9b31b80e240c7f32715
parented2b82c03dc187018307c7c6bf9299705f3db383
samples/bpf: add missing <linux/if_vlan.h>

This fixes build error regarding redefinition:

    CLANG-bpf  samples/bpf/parse_varlen.o
  samples/bpf/parse_varlen.c:111:8: error: redefinition of 'vlan_hdr'
  struct vlan_hdr {
         ^
  ./include/linux/if_vlan.h:38:8: note: previous definition is here

So remove duplicate 'struct vlan_hdr' in sample code and include if_vlan.h

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/parse_varlen.c