diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-07-10 18:51:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-10 19:32:35 -0400 |
commit | a94c33dd1f677d16c4f1a162b4b3e9eba1b07c24 (patch) | |
tree | c5a55e93fc355f73d614b0608dac3652b8048adf /include/linux/extable.h | |
parent | 12e8fd6fd380261fd200d2e8f7a519ade73ea05b (diff) |
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>
Diffstat (limited to 'include/linux/extable.h')
-rw-r--r-- | include/linux/extable.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/extable.h b/include/linux/extable.h index 7effea4b257d..28addad0dda7 100644 --- a/include/linux/extable.h +++ b/include/linux/extable.h | |||
@@ -2,13 +2,14 @@ | |||
2 | #define _LINUX_EXTABLE_H | 2 | #define _LINUX_EXTABLE_H |
3 | 3 | ||
4 | #include <linux/stddef.h> /* for NULL */ | 4 | #include <linux/stddef.h> /* for NULL */ |
5 | #include <linux/types.h> | ||
5 | 6 | ||
6 | struct module; | 7 | struct module; |
7 | struct exception_table_entry; | 8 | struct exception_table_entry; |
8 | 9 | ||
9 | const struct exception_table_entry * | 10 | const struct exception_table_entry * |
10 | search_extable(const struct exception_table_entry *first, | 11 | search_extable(const struct exception_table_entry *base, |
11 | const struct exception_table_entry *last, | 12 | const size_t num, |
12 | unsigned long value); | 13 | unsigned long value); |
13 | void sort_extable(struct exception_table_entry *start, | 14 | void sort_extable(struct exception_table_entry *start, |
14 | struct exception_table_entry *finish); | 15 | struct exception_table_entry *finish); |