diff options
author | Björn Töpel <bjorn@kernel.org> | 2021-11-03 12:54:53 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-11-05 16:52:34 +0100 |
commit | f47d4ffe3a84ae11fc4bddc37939b9719467042c (patch) | |
tree | df613c10795304aa34485fef29ea044b97ef82b5 /arch/riscv/kernel/cacheinfo.c | |
parent | 8955c1a329873385775081e029d9a7c6aa9037e1 (diff) | |
download | linux-f47d4ffe3a84ae11fc4bddc37939b9719467042c.tar.gz linux-f47d4ffe3a84ae11fc4bddc37939b9719467042c.tar.bz2 linux-f47d4ffe3a84ae11fc4bddc37939b9719467042c.zip |
riscv, bpf: Fix RV32 broken build, and silence RV64 warning
Commit 252c765bd764 ("riscv, bpf: Add BPF exception tables") only addressed
RV64, and broke the RV32 build [1]. Fix by gating the exception tables code
with CONFIG_ARCH_RV64I.
Further, silence a "-Wmissing-prototypes" warning [2] in the RV64 BPF JIT.
[1] https://lore.kernel.org/llvm/202111020610.9oy9Rr0G-lkp@intel.com/
[2] https://lore.kernel.org/llvm/202110290334.2zdMyRq4-lkp@intel.com/
Fixes: 252c765bd764 ("riscv, bpf: Add BPF exception tables")
Signed-off-by: Björn Töpel <bjorn@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Tong Tiangen <tongtiangen@huawei.com>
Link: https://lore.kernel.org/bpf/20211103115453.397209-1-bjorn@kernel.org
Diffstat (limited to 'arch/riscv/kernel/cacheinfo.c')
0 files changed, 0 insertions, 0 deletions