riscv: extable: use `ex` for `exception_table_entry`
authorJisheng Zhang <jszhang@kernel.org>
Thu, 18 Nov 2021 11:24:42 +0000 (19:24 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 01:52:34 +0000 (17:52 -0800)
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>
arch/riscv/mm/extable.c

index d41bf38..3c561f1 100644 (file)
 
 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;
 }