Skip to content

Commit c352e8b

Browse files
Ard Biesheuveltorvalds
authored andcommitted
s390/extable: use generic search and sort routines
Replace the arch specific versions of search_extable() and sort_extable() with calls to the generic ones, which now support relative exception tables as well. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e77986b commit c352e8b

File tree

3 files changed

+2
-93
lines changed

3 files changed

+2
-93
lines changed

arch/s390/include/asm/uaccess.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,12 @@ struct exception_table_entry
7979
int insn, fixup;
8080
};
8181

82-
static inline unsigned long extable_insn(const struct exception_table_entry *x)
83-
{
84-
return (unsigned long)&x->insn + x->insn;
85-
}
86-
8782
static inline unsigned long extable_fixup(const struct exception_table_entry *x)
8883
{
8984
return (unsigned long)&x->fixup + x->fixup;
9085
}
9186

92-
#define ARCH_HAS_SORT_EXTABLE
93-
#define ARCH_HAS_SEARCH_EXTABLE
87+
#define ARCH_HAS_RELATIVE_EXTABLE
9488

9589
/**
9690
* __copy_from_user: - Copy a block of data from user space, with less checking.

arch/s390/mm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
obj-y := init.o fault.o extmem.o mmap.o vmem.o maccess.o
6-
obj-y += page-states.o gup.o extable.o pageattr.o mem_detect.o
6+
obj-y += page-states.o gup.o pageattr.o mem_detect.o
77
obj-y += pgtable.o pgalloc.o
88

99
obj-$(CONFIG_CMM) += cmm.o

arch/s390/mm/extable.c

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)