Skip to content

Commit e77986b

Browse files
Ard Biesheuveltorvalds
authored andcommitted
alpha/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: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a395d6a commit e77986b

File tree

3 files changed

+9
-95
lines changed

3 files changed

+9
-95
lines changed

arch/alpha/include/asm/uaccess.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,13 @@ struct exception_table_entry
483483
(pc) + (_fixup)->fixup.bits.nextinsn; \
484484
})
485485

486-
#define ARCH_HAS_SORT_EXTABLE
487-
#define ARCH_HAS_SEARCH_EXTABLE
486+
#define ARCH_HAS_RELATIVE_EXTABLE
487+
488+
#define swap_ex_entry_fixup(a, b, tmp, delta) \
489+
do { \
490+
(a)->fixup.unit = (b)->fixup.unit; \
491+
(b)->fixup.unit = (tmp).fixup.unit; \
492+
} while (0)
493+
488494

489495
#endif /* __ALPHA_UACCESS_H */

arch/alpha/mm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
ccflags-y := -Werror
66

7-
obj-y := init.o fault.o extable.o
7+
obj-y := init.o fault.o
88

99
obj-$(CONFIG_DISCONTIGMEM) += numa.o

arch/alpha/mm/extable.c

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

0 commit comments

Comments
 (0)