diff options
author | Tong Tiangen <tongtiangen@huawei.com> | 2022-06-21 09:26:34 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-28 13:11:47 +0200 |
commit | bacac637025c2d73c2af5188e5a12008c5869df9 (patch) | |
tree | 854e20f35189235a5aeaaf1392f3ef7a6c7d3faf /arch/arm64/mm | |
parent | arm64: extable: move _cond_extable to _cond_uaccess_extable (diff) | |
download | linux-bacac637025c2d73c2af5188e5a12008c5869df9.tar.xz linux-bacac637025c2d73c2af5188e5a12008c5869df9.zip |
arm64: extable: cleanup redundant extable type EX_TYPE_FIXUP
Currently, extable type EX_TYPE_FIXUP is no place to use, We can safely
remove it.
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220621072638.1273594-7-tongtiangen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/extable.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm64/mm/extable.c b/arch/arm64/mm/extable.c index 056591e5ca80..228d681a8715 100644 --- a/arch/arm64/mm/extable.c +++ b/arch/arm64/mm/extable.c @@ -16,13 +16,6 @@ get_ex_fixup(const struct exception_table_entry *ex) return ((unsigned long)&ex->fixup + ex->fixup); } -static bool ex_handler_fixup(const struct exception_table_entry *ex, - struct pt_regs *regs) -{ - regs->pc = get_ex_fixup(ex); - return true; -} - static bool ex_handler_uaccess_err_zero(const struct exception_table_entry *ex, struct pt_regs *regs) { @@ -72,8 +65,6 @@ bool fixup_exception(struct pt_regs *regs) return false; switch (ex->type) { - case EX_TYPE_FIXUP: - return ex_handler_fixup(ex, regs); case EX_TYPE_BPF: return ex_handler_bpf(ex, regs); case EX_TYPE_UACCESS_ERR_ZERO: |