diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-05 11:35:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-05 18:36:18 -0400 |
commit | 29abfbd9cbba798a89c9f9f977d7d63bff5a5d04 (patch) | |
tree | a84919662bc120caf0cb51b52ee3d528a64e547b | |
parent | 45caf470077ae6b02da6d5eaee94003ee1543ca3 (diff) |
mips: separate extable.h, switch module.h to it
more victims of indirect include chains - au1200fb
lasat/picvue_proc and watchdog/ath79_wdt
... as well as tb0219, spotted by Sudip Mukherjee
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/mips/include/asm/extable.h | 13 | ||||
-rw-r--r-- | arch/mips/include/asm/module.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/uaccess.h | 9 | ||||
-rw-r--r-- | arch/mips/lasat/picvue_proc.c | 1 | ||||
-rw-r--r-- | drivers/char/tb0219.c | 1 | ||||
-rw-r--r-- | drivers/video/fbdev/au1200fb.c | 1 | ||||
-rw-r--r-- | drivers/watchdog/ath79_wdt.c | 1 |
7 files changed, 19 insertions, 9 deletions
diff --git a/arch/mips/include/asm/extable.h b/arch/mips/include/asm/extable.h new file mode 100644 index 000000000000..dce7a627a925 --- /dev/null +++ b/arch/mips/include/asm/extable.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef _ASM_EXTABLE_H | ||
2 | #define _ASM_EXTABLE_H | ||
3 | |||
4 | struct exception_table_entry | ||
5 | { | ||
6 | unsigned long insn; | ||
7 | unsigned long nextinsn; | ||
8 | }; | ||
9 | |||
10 | struct pt_regs; | ||
11 | extern int fixup_exception(struct pt_regs *regs); | ||
12 | |||
13 | #endif | ||
diff --git a/arch/mips/include/asm/module.h b/arch/mips/include/asm/module.h index 0aaf9a01ea50..702c273e67a9 100644 --- a/arch/mips/include/asm/module.h +++ b/arch/mips/include/asm/module.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <linux/elf.h> | 5 | #include <linux/elf.h> |
6 | #include <asm/uaccess.h> | 6 | #include <asm/extable.h> |
7 | 7 | ||
8 | struct mod_arch_specific { | 8 | struct mod_arch_specific { |
9 | /* Data Bus Error exception tables */ | 9 | /* Data Bus Error exception tables */ |
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 21a2aaba20d5..4daf839cd8a8 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/thread_info.h> | 16 | #include <linux/thread_info.h> |
17 | #include <linux/string.h> | 17 | #include <linux/string.h> |
18 | #include <asm/asm-eva.h> | 18 | #include <asm/asm-eva.h> |
19 | #include <asm/extable.h> | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * The fs value determines whether argument validity checking should be | 22 | * The fs value determines whether argument validity checking should be |
@@ -1485,12 +1486,4 @@ static inline long strnlen_user(const char __user *s, long n) | |||
1485 | return res; | 1486 | return res; |
1486 | } | 1487 | } |
1487 | 1488 | ||
1488 | struct exception_table_entry | ||
1489 | { | ||
1490 | unsigned long insn; | ||
1491 | unsigned long nextinsn; | ||
1492 | }; | ||
1493 | |||
1494 | extern int fixup_exception(struct pt_regs *regs); | ||
1495 | |||
1496 | #endif /* _ASM_UACCESS_H */ | 1489 | #endif /* _ASM_UACCESS_H */ |
diff --git a/arch/mips/lasat/picvue_proc.c b/arch/mips/lasat/picvue_proc.c index 27533c109f92..dd292dcec684 100644 --- a/arch/mips/lasat/picvue_proc.c +++ b/arch/mips/lasat/picvue_proc.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/timer.h> | 17 | #include <linux/timer.h> |
18 | #include <linux/mutex.h> | 18 | #include <linux/mutex.h> |
19 | #include <linux/uaccess.h> | ||
19 | 20 | ||
20 | #include "picvue.h" | 21 | #include "picvue.h" |
21 | 22 | ||
diff --git a/drivers/char/tb0219.c b/drivers/char/tb0219.c index 480a777db577..7c19d9b22785 100644 --- a/drivers/char/tb0219.c +++ b/drivers/char/tb0219.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/fs.h> | 21 | #include <linux/fs.h> |
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/uaccess.h> | ||
24 | 25 | ||
25 | #include <asm/io.h> | 26 | #include <asm/io.h> |
26 | #include <asm/reboot.h> | 27 | #include <asm/reboot.h> |
diff --git a/drivers/video/fbdev/au1200fb.c b/drivers/video/fbdev/au1200fb.c index f9507b1894df..6c2b2ca4a909 100644 --- a/drivers/video/fbdev/au1200fb.c +++ b/drivers/video/fbdev/au1200fb.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <linux/ctype.h> | 43 | #include <linux/ctype.h> |
44 | #include <linux/dma-mapping.h> | 44 | #include <linux/dma-mapping.h> |
45 | #include <linux/slab.h> | 45 | #include <linux/slab.h> |
46 | #include <linux/uaccess.h> | ||
46 | 47 | ||
47 | #include <asm/mach-au1x00/au1000.h> | 48 | #include <asm/mach-au1x00/au1000.h> |
48 | #include <asm/mach-au1x00/au1200fb.h> /* platform_data */ | 49 | #include <asm/mach-au1x00/au1200fb.h> /* platform_data */ |
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c index 835d310081e1..e2209bf5fa8a 100644 --- a/drivers/watchdog/ath79_wdt.c +++ b/drivers/watchdog/ath79_wdt.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/err.h> | 35 | #include <linux/err.h> |
36 | #include <linux/of.h> | 36 | #include <linux/of.h> |
37 | #include <linux/of_platform.h> | 37 | #include <linux/of_platform.h> |
38 | #include <linux/uaccess.h> | ||
38 | 39 | ||
39 | #define DRIVER_NAME "ath79-wdt" | 40 | #define DRIVER_NAME "ath79-wdt" |
40 | 41 | ||