summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-03-08 22:01:58 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-03-08 22:01:58 -0800
commit987a08741d72c1f735e31bfe478dc2ac6be8fc7e (patch)
treeea1f17fd95a2123a504711209055c803126f34b6 /lib
parent144c79ef33536b4ecb4951e07dbc1f2b7fa99d32 (diff)
parentcf64c2a905e0dabcc473ca70baf275fb3a61fac4 (diff)
downloadlinux-stable-987a08741d72c1f735e31bfe478dc2ac6be8fc7e.tar.gz
linux-stable-987a08741d72c1f735e31bfe478dc2ac6be8fc7e.tar.bz2
linux-stable-987a08741d72c1f735e31bfe478dc2ac6be8fc7e.zip
Merge git://git.kernel.org:/pub/scm/linux/kernel/git/davem/sparc
Pull sparc updates from David Miller: "Just some more random bits from Al, including a conversion over to generic extables" * git://git.kernel.org:/pub/scm/linux/kernel/git/davem/sparc: sparc32: take ->thread.flags out sparc32: get rid of fake_swapper_regs sparc64: get rid of fake_swapper_regs sparc32: switch to generic extables sparc32: switch copy_user.S away from range exception table entries sparc32: get rid of range exception table entries in checksum_32.S sparc32: switch __bzero() away from range exception table entries sparc32: kill lookup_fault() sparc32: don't bother with lookup_fault() in __bzero()
Diffstat (limited to 'lib')
-rw-r--r--lib/extable.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/extable.c b/lib/extable.c
index c3e59caf7ffa..9c9f40bd2b3d 100644
--- a/lib/extable.c
+++ b/lib/extable.c
@@ -21,7 +21,6 @@ static inline unsigned long ex_to_insn(const struct exception_table_entry *x)
}
#endif
-#ifndef ARCH_HAS_SORT_EXTABLE
#ifndef ARCH_HAS_RELATIVE_EXTABLE
#define swap_ex NULL
#else
@@ -88,9 +87,6 @@ void trim_init_extable(struct module *m)
m->num_exentries--;
}
#endif /* CONFIG_MODULES */
-#endif /* !ARCH_HAS_SORT_EXTABLE */
-
-#ifndef ARCH_HAS_SEARCH_EXTABLE
static int cmp_ex_search(const void *key, const void *elt)
{
@@ -120,4 +116,3 @@ search_extable(const struct exception_table_entry *base,
return bsearch(&value, base, num,
sizeof(struct exception_table_entry), cmp_ex_search);
}
-#endif