History

bpf: Add bpf_jit_blinding_enabled for !CONFIG_BPF_JIT

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 [...]

Daniel Borkmann committed 6 years ago

Commit b8cd76c1 parent 6dbae031 file · +5 −0Browse files

Unified · Split

include/linux/filter.h+5−0
@@ -1053,6 +1053,11 @@ static inline bool ebpf_jit_enabled(void) · 1052 unmodified lines
1053 return false;1053 return false;
1054}1054}
1055 1055
1056static inline bool bpf_jit_blinding_enabled(struct bpf_prog *prog)
1057{
1058 return false;
1059}
1060
1056static inline bool bpf_prog_ebpf_jited(const struct bpf_prog *fp)1061static inline bool bpf_prog_ebpf_jited(const struct bpf_prog *fp)
1057{1062{
1058 return false;1063 return false;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t