diff options
| author | Randy Dunlap <[email protected]> | 2023-02-27 07:20:16 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-02-27 21:14:33 +0000 |
| commit | 2d311f480b52eeb2e1fd432d64b78d82952c3808 (patch) | |
| tree | ddefb7c7440bb0292df83b0b929180a2355dc9ed /net/ipv4/tcp_bpf.c | |
| parent | bpf, docs: Fix link to BTF doc (diff) | |
| download | kernel-2d311f480b52eeb2e1fd432d64b78d82952c3808.tar.gz kernel-2d311f480b52eeb2e1fd432d64b78d82952c3808.zip | |
riscv, bpf: Fix patch_text implicit declaration
bpf_jit_comp64.c uses patch_text(), so add <asm/patch.h> to it
to prevent the build error:
../arch/riscv/net/bpf_jit_comp64.c: In function 'bpf_arch_text_poke':
../arch/riscv/net/bpf_jit_comp64.c:691:23: error: implicit declaration of function 'patch_text'; did you mean 'path_get'? [-Werror=implicit-function-declaration]
691 | ret = patch_text(ip, new_insns, ninsns);
| ^~~~~~~~~~
Fixes: 596f2e6f9cf4 ("riscv, bpf: Add bpf_arch_text_poke support for RV64")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Pu Lehui <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv4/tcp_bpf.c')
0 files changed, 0 insertions, 0 deletions
