diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2014-05-13 12:58:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-13 13:15:45 -0400 |
commit | 98920ba6911c7d841375f91e0adfffbac4f782b5 (patch) | |
tree | 2911c8dbdfd286ca57c1c330791c8829faad6aca /lib | |
parent | 1268e253a81e504bc5d5cb7f887dbd538984f137 (diff) |
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: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 423ca319a5f8..d1b7bdfb8f8e 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1623,7 +1623,7 @@ config TEST_USER_COPY | |||
1623 | config TEST_BPF | 1623 | config TEST_BPF |
1624 | tristate "Test BPF filter functionality" | 1624 | tristate "Test BPF filter functionality" |
1625 | default n | 1625 | default n |
1626 | depends on m | 1626 | depends on m && NET |
1627 | help | 1627 | help |
1628 | This builds the "test_bpf" module that runs various test vectors | 1628 | This builds the "test_bpf" module that runs various test vectors |
1629 | against the BPF interpreter or BPF JIT compiler depending on the | 1629 | against the BPF interpreter or BPF JIT compiler depending on the |