diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-12 18:47:45 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-27 21:15:14 -0400 |
commit | df720ac12fc76d235a1b0d7ebccd14b23085c24e (patch) | |
tree | 2c39bc592854e12a226ddd4692c2f2f670f77f41 | |
parent | 3be7988674ab33565700a37b210f502563d932e6 (diff) |
exceptions: detritus removal
externs and defines for stuff that is never used
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/arm/mm/fault.h | 1 | ||||
-rw-r--r-- | arch/m68k/include/asm/uaccess_no.h | 3 | ||||
-rw-r--r-- | arch/microblaze/include/asm/uaccess.h | 3 | ||||
-rw-r--r-- | arch/openrisc/include/asm/uaccess.h | 4 | ||||
-rw-r--r-- | arch/sh/include/asm/uaccess.h | 2 | ||||
-rw-r--r-- | arch/x86/mm/fault.c | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/uaccess.h | 11 | ||||
-rw-r--r-- | include/asm-generic/uaccess.h | 4 |
8 files changed, 1 insertions, 29 deletions
diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h index 05ec5e0df32d..67532f242271 100644 --- a/arch/arm/mm/fault.h +++ b/arch/arm/mm/fault.h | |||
@@ -23,7 +23,6 @@ static inline int fsr_fs(unsigned int fsr) | |||
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs); | 25 | void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs); |
26 | unsigned long search_exception_table(unsigned long addr); | ||
27 | void early_abt_enable(void); | 26 | void early_abt_enable(void); |
28 | 27 | ||
29 | #endif /* __ARCH_ARM_FAULT_H */ | 28 | #endif /* __ARCH_ARM_FAULT_H */ |
diff --git a/arch/m68k/include/asm/uaccess_no.h b/arch/m68k/include/asm/uaccess_no.h index 1bdf15263754..36deeb36503b 100644 --- a/arch/m68k/include/asm/uaccess_no.h +++ b/arch/m68k/include/asm/uaccess_no.h | |||
@@ -44,9 +44,6 @@ struct exception_table_entry | |||
44 | unsigned long insn, fixup; | 44 | unsigned long insn, fixup; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | /* Returns 0 if exception not found and fixup otherwise. */ | ||
48 | extern unsigned long search_exception_table(unsigned long); | ||
49 | |||
50 | 47 | ||
51 | /* | 48 | /* |
52 | * These are the main single-value transfer routines. They automatically | 49 | * These are the main single-value transfer routines. They automatically |
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h index 826676778094..253a67e275ad 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h | |||
@@ -71,9 +71,6 @@ struct exception_table_entry { | |||
71 | unsigned long insn, fixup; | 71 | unsigned long insn, fixup; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | /* Returns 0 if exception not found and fixup otherwise. */ | ||
75 | extern unsigned long search_exception_table(unsigned long); | ||
76 | |||
77 | #ifndef CONFIG_MMU | 74 | #ifndef CONFIG_MMU |
78 | 75 | ||
79 | /* Check against bounds of physical memory */ | 76 | /* Check against bounds of physical memory */ |
diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h index 5cc6b4f1b795..140faa16685a 100644 --- a/arch/openrisc/include/asm/uaccess.h +++ b/arch/openrisc/include/asm/uaccess.h | |||
@@ -82,10 +82,6 @@ struct exception_table_entry { | |||
82 | unsigned long insn, fixup; | 82 | unsigned long insn, fixup; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | /* Returns 0 if exception not found and fixup otherwise. */ | ||
86 | extern unsigned long search_exception_table(unsigned long); | ||
87 | extern void sort_exception_table(void); | ||
88 | |||
89 | /* | 85 | /* |
90 | * These are the main single-value transfer routines. They automatically | 86 | * These are the main single-value transfer routines. They automatically |
91 | * use the right size if we just have the right pointer type. | 87 | * use the right size if we just have the right pointer type. |
diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h index 92ade79ac427..a38d0c7b818f 100644 --- a/arch/sh/include/asm/uaccess.h +++ b/arch/sh/include/asm/uaccess.h | |||
@@ -192,8 +192,6 @@ struct exception_table_entry { | |||
192 | #endif | 192 | #endif |
193 | 193 | ||
194 | int fixup_exception(struct pt_regs *regs); | 194 | int fixup_exception(struct pt_regs *regs); |
195 | /* Returns 0 if exception not found and fixup.unit otherwise. */ | ||
196 | unsigned long search_exception_table(unsigned long addr); | ||
197 | const struct exception_table_entry *search_exception_tables(unsigned long addr); | 195 | const struct exception_table_entry *search_exception_tables(unsigned long addr); |
198 | 196 | ||
199 | extern void *set_exception_table_vec(unsigned int vec, void *handler); | 197 | extern void *set_exception_table_vec(unsigned int vec, void *handler); |
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index dc8023060456..c0413d5541af 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -5,7 +5,7 @@ | |||
5 | */ | 5 | */ |
6 | #include <linux/sched.h> /* test_thread_flag(), ... */ | 6 | #include <linux/sched.h> /* test_thread_flag(), ... */ |
7 | #include <linux/kdebug.h> /* oops_begin/end, ... */ | 7 | #include <linux/kdebug.h> /* oops_begin/end, ... */ |
8 | #include <linux/module.h> /* search_exception_table */ | 8 | #include <linux/module.h> /* search_exception_tables */ |
9 | #include <linux/bootmem.h> /* max_low_pfn */ | 9 | #include <linux/bootmem.h> /* max_low_pfn */ |
10 | #include <linux/kprobes.h> /* NOKPROBE_SYMBOL, ... */ | 10 | #include <linux/kprobes.h> /* NOKPROBE_SYMBOL, ... */ |
11 | #include <linux/mmiotrace.h> /* kmmio_handler, ... */ | 11 | #include <linux/mmiotrace.h> /* kmmio_handler, ... */ |
diff --git a/arch/xtensa/include/asm/uaccess.h b/arch/xtensa/include/asm/uaccess.h index 147b26ed9c91..de72ba558d8d 100644 --- a/arch/xtensa/include/asm/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h | |||
@@ -495,16 +495,5 @@ struct exception_table_entry | |||
495 | unsigned long insn, fixup; | 495 | unsigned long insn, fixup; |
496 | }; | 496 | }; |
497 | 497 | ||
498 | /* Returns 0 if exception not found and fixup.unit otherwise. */ | ||
499 | |||
500 | extern unsigned long search_exception_table(unsigned long addr); | ||
501 | extern void sort_exception_table(void); | ||
502 | |||
503 | /* Returns the new pc */ | ||
504 | #define fixup_exception(map_reg, fixup_unit, pc) \ | ||
505 | ({ \ | ||
506 | fixup_unit; \ | ||
507 | }) | ||
508 | |||
509 | #endif /* __ASSEMBLY__ */ | 498 | #endif /* __ASSEMBLY__ */ |
510 | #endif /* _XTENSA_UACCESS_H */ | 499 | #endif /* _XTENSA_UACCESS_H */ |
diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h index 6df9b0749671..cc6bb319e464 100644 --- a/include/asm-generic/uaccess.h +++ b/include/asm-generic/uaccess.h | |||
@@ -69,10 +69,6 @@ struct exception_table_entry | |||
69 | unsigned long insn, fixup; | 69 | unsigned long insn, fixup; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | /* Returns 0 if exception not found and fixup otherwise. */ | ||
73 | extern unsigned long search_exception_table(unsigned long); | ||
74 | |||
75 | |||
76 | /* | 72 | /* |
77 | * architectures with an MMU should override these two | 73 | * architectures with an MMU should override these two |
78 | */ | 74 | */ |