summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-11-18 12:24:14 +0100
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-06 02:52:29 +0100
commitef127bca1129d3d15f909f9215b9431a2f67555a (patch)
tree3e29bc1108febb2e804c22b9021f80ddfc999677 /arch/riscv/include/asm
parentriscv: bpf: move rv_bpf_fixup_exception signature to extable.h (diff)
downloadlinux-ef127bca1129d3d15f909f9215b9431a2f67555a.tar.xz
linux-ef127bca1129d3d15f909f9215b9431a2f67555a.zip
riscv: extable: make fixup_exception() return bool
The return values of fixup_exception() and riscv_bpf_fixup_exception() represent a boolean condition rather than an error code, so it's better to return `bool` rather than `int`. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm')
-rw-r--r--arch/riscv/include/asm/extable.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/riscv/include/asm/extable.h b/arch/riscv/include/asm/extable.h
index c48c020fcf4d..e4374dde02b4 100644
--- a/arch/riscv/include/asm/extable.h
+++ b/arch/riscv/include/asm/extable.h
@@ -21,16 +21,16 @@ struct exception_table_entry {
#define ARCH_HAS_RELATIVE_EXTABLE
-int fixup_exception(struct pt_regs *regs);
+bool fixup_exception(struct pt_regs *regs);
#if defined(CONFIG_BPF_JIT) && defined(CONFIG_ARCH_RV64I)
-int rv_bpf_fixup_exception(const struct exception_table_entry *ex, struct pt_regs *regs);
+bool rv_bpf_fixup_exception(const struct exception_table_entry *ex, struct pt_regs *regs);
#else
-static inline int
+static inline bool
rv_bpf_fixup_exception(const struct exception_table_entry *ex,
struct pt_regs *regs)
{
- return 0;
+ return false;
}
#endif