mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
lib/extable.c: use bsearch() library function in search_extable()
[thomas@m3y3r.de: v3: fix arch specific implementations] Link: http://lkml.kernel.org/r/1497890858.12931.7.camel@m3y3r.de Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
12e8fd6fd3
commit
a94c33dd1f
8 changed files with 63 additions and 56 deletions
|
@ -429,7 +429,8 @@ static const struct exception_table_entry *search_dbe_tables(unsigned long addr)
|
|||
{
|
||||
const struct exception_table_entry *e;
|
||||
|
||||
e = search_extable(__start___dbe_table, __stop___dbe_table - 1, addr);
|
||||
e = search_extable(__start___dbe_table,
|
||||
__stop___dbe_table - __start___dbe_table, addr);
|
||||
if (!e)
|
||||
e = search_module_dbetables(addr);
|
||||
return e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue