Skip to content

Commit

Permalink
s390/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 <[email protected]>
Acked-by: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ard Biesheuvel authored and torvalds committed Mar 22, 2016
1 parent e77986b commit c352e8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 93 deletions.
8 changes: 1 addition & 7 deletions arch/s390/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,12 @@ struct exception_table_entry
int insn, fixup;
};

static inline unsigned long extable_insn(const struct exception_table_entry *x)
{
return (unsigned long)&x->insn + x->insn;
}

static inline unsigned long extable_fixup(const struct exception_table_entry *x)
{
return (unsigned long)&x->fixup + x->fixup;
}

#define ARCH_HAS_SORT_EXTABLE
#define ARCH_HAS_SEARCH_EXTABLE
#define ARCH_HAS_RELATIVE_EXTABLE

/**
* __copy_from_user: - Copy a block of data from user space, with less checking.
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

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

obj-$(CONFIG_CMM) += cmm.o
Expand Down
85 changes: 0 additions & 85 deletions arch/s390/mm/extable.c

This file was deleted.

0 comments on commit c352e8b

Please sign in to comment.