Re: [PATCH v2 1/4] samples/bpf: add missing <linux/if_vlan.h>

From: David Miller
Date: Thu Jul 05 2018 - 01:25:26 EST


From: Taeung Song <treeze.taeung@xxxxxxxxx>
Date: Wed, 4 Jul 2018 22:36:36 +0900

> 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@xxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>