提交 98920ba6 编写于 作者: R Randy Dunlap 提交者: David S. Miller

net: fix test_bpf build to depend on NET

Fix build when CONFIG_NET is not enabled.
Fixes these build errors:

WARNING: "sk_unattached_filter_destroy" [lib/test_bpf.ko] undefined!
WARNING: "kfree_skb" [lib/test_bpf.ko] undefined!
WARNING: "sk_unattached_filter_create" [lib/test_bpf.ko] undefined!
WARNING: "sk_run_filter_int_skb" [lib/test_bpf.ko] undefined!
WARNING: "__alloc_skb" [lib/test_bpf.ko] undefined!
Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
Acked-by: NAlexei Starovoitov <ast@plumgrid.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1268e253
...@@ -1623,7 +1623,7 @@ config TEST_USER_COPY ...@@ -1623,7 +1623,7 @@ config TEST_USER_COPY
config TEST_BPF config TEST_BPF
tristate "Test BPF filter functionality" tristate "Test BPF filter functionality"
default n default n
depends on m depends on m && NET
help help
This builds the "test_bpf" module that runs various test vectors This builds the "test_bpf" module that runs various test vectors
against the BPF interpreter or BPF JIT compiler depending on the against the BPF interpreter or BPF JIT compiler depending on the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册