bpf: fix samples xdp_tx_iptunnel and tc_l2_redirect with fake KBUILD_MODNAME
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 18 Jan 2017 16:19:00 +0000 (17:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 17:04:07 +0000 (12:04 -0500)
commitcdb749cef16bceb74950fc8668f2632ff7cac9aa
treef648b48e85aa6cb2a3fdf32ab485dbd7800c63d9
parentdf384d435a5c034c735df3d9ea87a03172c59b56
bpf: fix samples xdp_tx_iptunnel and tc_l2_redirect with fake KBUILD_MODNAME

Fix build errors for samples/bpf xdp_tx_iptunnel and tc_l2_redirect,
when dynamic debugging is enabled (CONFIG_DYNAMIC_DEBUG) by defining a
fake KBUILD_MODNAME.

Just like Daniel Borkmann fixed other samples/bpf in commit
96a8eb1eeed2 ("bpf: fix samples to add fake KBUILD_MODNAME").

Fixes: 12d8bb64e3f6 ("bpf: xdp: Add XDP example for head adjustment")
Fixes: 90e02896f1a4 ("bpf: Add test for bpf_redirect to ipip/ip6tnl")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/tc_l2_redirect_kern.c
samples/bpf/xdp_tx_iptunnel_kern.c