Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/extable: move extable related functions to mm/extable.c

Just like arm64, riscv, and x86 move extable related functions to
mm/extable.c. This is currently only one function, but this will
change with subsequent changes.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
0741ec11 d09a307f

+17 -13
+1 -1
arch/s390/mm/Makefile
··· 4 4 # 5 5 6 6 obj-y := init.o fault.o extmem.o mmap.o vmem.o maccess.o 7 - obj-y += page-states.o pageattr.o pgtable.o pgalloc.o 7 + obj-y += page-states.o pageattr.o pgtable.o pgalloc.o extable.o 8 8 9 9 obj-$(CONFIG_CMM) += cmm.o 10 10 obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
+16
arch/s390/mm/extable.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + 3 + #include <linux/extable.h> 4 + #include <asm/extable.h> 5 + 6 + const struct exception_table_entry *s390_search_extables(unsigned long addr) 7 + { 8 + const struct exception_table_entry *fixup; 9 + size_t num; 10 + 11 + fixup = search_exception_tables(addr); 12 + if (fixup) 13 + return fixup; 14 + num = __stop_amode31_ex_table - __start_amode31_ex_table; 15 + return search_extable(__start_amode31_ex_table, num, addr); 16 + }
-12
arch/s390/mm/fault.c
··· 228 228 (void __user *)(regs->int_parm_long & __FAIL_ADDR_MASK)); 229 229 } 230 230 231 - const struct exception_table_entry *s390_search_extables(unsigned long addr) 232 - { 233 - const struct exception_table_entry *fixup; 234 - size_t num; 235 - 236 - fixup = search_exception_tables(addr); 237 - if (fixup) 238 - return fixup; 239 - num = __stop_amode31_ex_table - __start_amode31_ex_table; 240 - return search_extable(__start_amode31_ex_table, num, addr); 241 - } 242 - 243 231 static noinline void do_no_context(struct pt_regs *regs) 244 232 { 245 233 const struct exception_table_entry *fixup;