summaryrefslogtreecommitdiff
path: root/arch/riscv/mm
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-11-18 14:24:42 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2022-01-06 04:52:34 +0300
commit4c2e7ce8b9864fa1c5f9fc5ea19af11205730cd6 (patch)
tree014cb765ef1c22423fa1caf44bccf13871a9282b /arch/riscv/mm
parentef127bca1129d3d15f909f9215b9431a2f67555a (diff)
downloadlinux-4c2e7ce8b9864fa1c5f9fc5ea19af11205730cd6.tar.xz
riscv: extable: use `ex` for `exception_table_entry`
The var name "fixup" is a bit confusing, since this is a exception_table_entry. Use "ex" instead to refer to an entire entry. In subsequent patches we'll use `fixup` to refer to the fixup field specifically. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/mm')
-rw-r--r--arch/riscv/mm/extable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/riscv/mm/extable.c b/arch/riscv/mm/extable.c
index d41bf38e37e9..3c561f1d0115 100644
--- a/arch/riscv/mm/extable.c
+++ b/arch/riscv/mm/extable.c
@@ -13,15 +13,15 @@
bool fixup_exception(struct pt_regs *regs)
{
- const struct exception_table_entry *fixup;
+ const struct exception_table_entry *ex;
- fixup = search_exception_tables(regs->epc);
- if (!fixup)
+ ex = search_exception_tables(regs->epc);
+ if (!ex)
return false;
if (regs->epc >= BPF_JIT_REGION_START && regs->epc < BPF_JIT_REGION_END)
- return rv_bpf_fixup_exception(fixup, regs);
+ return rv_bpf_fixup_exception(ex, regs);
- regs->epc = (unsigned long)&fixup->fixup + fixup->fixup;
+ regs->epc = (unsigned long)&ex->fixup + ex->fixup;
return true;
}