diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2021-10-06 16:08:25 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 12:34:02 -0700 |
commit | 90982e13561e0d8df91d49658d3bf068ae9f2dff (patch) | |
tree | 2f99b743bae5f8d5121670b56557db2d9099d76e /arch | |
parent | f438ee21ef21f9fa4e7745e9a4a6dd8a6422c7e2 (diff) | |
download | linux-stable-90982e13561e0d8df91d49658d3bf068ae9f2dff.tar.gz linux-stable-90982e13561e0d8df91d49658d3bf068ae9f2dff.tar.bz2 linux-stable-90982e13561e0d8df91d49658d3bf068ae9f2dff.zip |
bpf, arm: Remove dummy bpf_jit_compile stub
The BPF core defines a __weak bpf_jit_compile() dummy function already
which should only be overridden by JITs if they actually implement a
legacy cBPF JIT. Given arm implements an eBPF JIT, this stub is not
needed.
Now that MIPS cBPF JIT is finally gone, the only JIT left that is still
implementing bpf_jit_compile() is the sparc32 one.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/net/bpf_jit_32.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index a951276f0547..ce75c6b2e751 100644 --- a/arch/arm/net/bpf_jit_32.c +++ b/arch/arm/net/bpf_jit_32.c @@ -1863,11 +1863,6 @@ static int validate_code(struct jit_ctx *ctx) return 0; } -void bpf_jit_compile(struct bpf_prog *prog) -{ - /* Nothing to do here. We support Internal BPF. */ -} - bool bpf_jit_needs_zext(void) { return true; |