diff options
author | Valdis Kletnieks <valdis.kletnieks@vt.edu> | 2019-09-25 19:46:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-25 20:51:39 -0400 |
commit | 8e72a7a44df5534ae7664240c1fa75e71e11c64a (patch) | |
tree | b4d3cf20dfb8d282a5cffedef3d9265e1688baed /lib/extable.c | |
parent | e3f4faa42095cacceeb33c68fda647a8e6d48a90 (diff) |
lib/extable.c: add missing prototypes
When building with W=1, a number of warnings are issued:
CC lib/extable.o
lib/extable.c:63:6: warning: no previous prototype for 'sort_extable' [-Wmissing-prototypes]
63 | void sort_extable(struct exception_table_entry *start,
| ^~~~~~~~~~~~
lib/extable.c:75:6: warning: no previous prototype for 'trim_init_extable' [-Wmissing-prototypes]
75 | void trim_init_extable(struct module *m)
| ^~~~~~~~~~~~~~~~~
lib/extable.c:115:1: warning: no previous prototype for 'search_extable' [-Wmissing-prototypes]
115 | search_extable(const struct exception_table_entry *base,
| ^~~~~~~~~~~~~~
Add the missing #include for the prototypes.
Link: http://lkml.kernel.org/r/45574.1565235784@turing-police
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/extable.c')
-rw-r--r-- | lib/extable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/extable.c b/lib/extable.c index 25da4071122a..c3e59caf7ffa 100644 --- a/lib/extable.c +++ b/lib/extable.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/sort.h> | 11 | #include <linux/sort.h> |
12 | #include <linux/uaccess.h> | 12 | #include <linux/uaccess.h> |
13 | #include <linux/extable.h> | ||
13 | 14 | ||
14 | #ifndef ARCH_HAS_RELATIVE_EXTABLE | 15 | #ifndef ARCH_HAS_RELATIVE_EXTABLE |
15 | #define ex_to_insn(x) ((x)->insn) | 16 | #define ex_to_insn(x) ((x)->insn) |