Files
Linux/kernel
Daniel Borkmann b954d83421 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: 738cbe72ad ("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]>
2014-09-10 14:05:07 -07:00
..
2014-06-12 16:18:45 +02:00
2014-08-25 21:13:30 +02:00
…
…
2014-08-08 15:57:18 -07:00
…
…
2014-07-05 11:17:45 +02:00
…
…
…
…
…
…
…
…
2014-08-08 15:57:32 -07:00
…
2014-08-08 15:57:24 -07:00
2014-07-17 22:07:37 +02:00
…
…
…
…
…
…
…
…
…
2014-08-08 15:57:22 -07:00
…
2014-08-08 15:57:24 -07:00