Add a definition of bpf_jit_blinding_enabled() when CONFIG_BPF_JIT is not set in order to fix a recent build regression: [...] CC kernel/bpf/verifier.o CC kernel/bpf/inode.o kernel/bpf/verifier.c: In function ‘fixup_bpf_calls’: kernel/bpf/verifier.c:9132:25: error: implicit declaration of function ‘bpf_jit_blinding_enabled’; did you mean ‘bpf_jit_kallsyms_enabled’? [-Werror=implicit-function-declaration] 9132 | bool expect_blinding = bpf_jit_blinding_enabled(prog); | ^~~~~~~~~~~~~~~~~~~~~~~~ | bpf_jit_kallsyms_enabled CC kernel/bpf/helpers.o CC kernel/bpf/hashtab.o [...]
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -1053,6 +1053,11 @@ static inline bool ebpf_jit_enabled(void) · 1052 unmodified lines | |||
| 1053 | return false; | 1053 | return false; |
| 1054 | } | 1054 | } |
| 1055 | 1055 | ||
| 1056 | static inline bool bpf_jit_blinding_enabled(struct bpf_prog *prog) | ||
| 1057 | { | ||
| 1058 | return false; | ||
| 1059 | } | ||
| 1060 | |||
| 1056 | static inline bool bpf_prog_ebpf_jited(const struct bpf_prog *fp) | 1061 | static inline bool bpf_prog_ebpf_jited(const struct bpf_prog *fp) |
| 1057 | { | 1062 | { |
| 1058 | return false; | 1063 | return false; |