diff options
| author | Daniel Borkmann <[email protected]> | 2014-09-10 15:01:02 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-09-10 14:05:07 -0700 |
| commit | b954d83421d51d822c42e5ab7b65069b25ad3005 (patch) | |
| tree | 0a419ab76ac8abbc459472b7c5b79800bc3cdc45 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 17fa1f983649580772e95ee95e2c096baa650219 (diff) | |
net: bpf: only build bpf_jit_binary_{alloc, free}() when jit selected
Since BPF JIT depends on the availability of module_alloc() and
module_free() helpers (HAVE_BPF_JIT and MODULES), we better build
that code only in case we have BPF_JIT in our config enabled, just
like with other JIT code. Fixes builds for arm/marzen_defconfig
and sh/rsk7269_defconfig.
====================
kernel/built-in.o: In function `bpf_jit_binary_alloc':
/home/cwang/linux/kernel/bpf/core.c:144: undefined reference to `module_alloc'
kernel/built-in.o: In function `bpf_jit_binary_free':
/home/cwang/linux/kernel/bpf/core.c:164: undefined reference to `module_free'
make: *** [vmlinux] Error 1
====================
Reported-by: Fengguang Wu <[email protected]>
Fixes: 738cbe72adc5 ("net: bpf: consolidate JIT binary allocator")
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions