Skip to content

Commit

Permalink
alpha/extable: use generic search and sort routines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ard Biesheuvel authored and Linus Torvalds committed Mar 22, 2016
1 parent a395d6a commit e77986b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 95 deletions.
10 changes: 8 additions & 2 deletions arch/alpha/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,13 @@ struct exception_table_entry
(pc) + (_fixup)->fixup.bits.nextinsn; \
})

#define ARCH_HAS_SORT_EXTABLE
#define ARCH_HAS_SEARCH_EXTABLE
#define ARCH_HAS_RELATIVE_EXTABLE

#define swap_ex_entry_fixup(a, b, tmp, delta) \
do { \
(a)->fixup.unit = (b)->fixup.unit; \
(b)->fixup.unit = (tmp).fixup.unit; \
} while (0)


#endif /* __ALPHA_UACCESS_H */
2 changes: 1 addition & 1 deletion arch/alpha/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

ccflags-y := -Werror

obj-y := init.o fault.o extable.o
obj-y := init.o fault.o

obj-$(CONFIG_DISCONTIGMEM) += numa.o
92 changes: 0 additions & 92 deletions arch/alpha/mm/extable.c

This file was deleted.

0 comments on commit e77986b

Please sign in to comment.