diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-23 12:38:07 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-04-23 15:51:40 -0400 |
commit | c67fdc1f00cba9de86c30f5a01eff21d3ea66c8f (patch) | |
tree | 8ebdc29930275d90107ffcb568ab2d62b36825db | |
parent | 737d42f75e943fd884ad13acb6d3ee3aff3dcd30 (diff) |
arch: mostly remove <asm/segment.h>
A few architectures use <asm/segment.h> internally, but nothing in
common code does. Remove all the empty or almost empty versions of it,
including the asm-generic one.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/alpha/include/asm/segment.h | 6 | ||||
-rw-r--r-- | arch/alpha/kernel/smc37c669.c | 1 | ||||
-rw-r--r-- | arch/alpha/kernel/smc37c93x.c | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/arm64/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/c6x/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/hexagon/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/hexagon/include/asm/uaccess.h | 1 | ||||
-rw-r--r-- | arch/ia64/include/asm/segment.h | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/nds32/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/nios2/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/openrisc/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/openrisc/kernel/ptrace.c | 1 | ||||
-rw-r--r-- | arch/openrisc/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/openrisc/kernel/traps.c | 1 | ||||
-rw-r--r-- | arch/openrisc/mm/init.c | 1 | ||||
-rw-r--r-- | arch/openrisc/mm/tlb.c | 1 | ||||
-rw-r--r-- | arch/parisc/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/s390/include/asm/segment.h | 5 | ||||
-rw-r--r-- | arch/s390/kernel/ptrace.c | 1 | ||||
-rw-r--r-- | arch/unicore32/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/xtensa/include/asm/segment.h | 16 | ||||
-rw-r--r-- | include/asm-generic/segment.h | 9 |
24 files changed, 0 insertions, 61 deletions
diff --git a/arch/alpha/include/asm/segment.h b/arch/alpha/include/asm/segment.h deleted file mode 100644 index 0453d97daae7..000000000000 --- a/arch/alpha/include/asm/segment.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __ALPHA_SEGMENT_H | ||
2 | #define __ALPHA_SEGMENT_H | ||
3 | |||
4 | /* Only here because we have some old header files that expect it.. */ | ||
5 | |||
6 | #endif | ||
diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c index 4dbd4e415041..bbbd34586de0 100644 --- a/arch/alpha/kernel/smc37c669.c +++ b/arch/alpha/kernel/smc37c669.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <asm/hwrpb.h> | 11 | #include <asm/hwrpb.h> |
12 | #include <asm/io.h> | 12 | #include <asm/io.h> |
13 | #include <asm/segment.h> | ||
14 | 13 | ||
15 | #if 0 | 14 | #if 0 |
16 | # define DBG_DEVS(args) printk args | 15 | # define DBG_DEVS(args) printk args |
diff --git a/arch/alpha/kernel/smc37c93x.c b/arch/alpha/kernel/smc37c93x.c index 733f08966fd2..71cd7aca38ce 100644 --- a/arch/alpha/kernel/smc37c93x.c +++ b/arch/alpha/kernel/smc37c93x.c | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #include <asm/hwrpb.h> | 12 | #include <asm/hwrpb.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | #include <asm/segment.h> | ||
15 | 14 | ||
16 | #define SMC_DEBUG 0 | 15 | #define SMC_DEBUG 0 |
17 | 16 | ||
diff --git a/arch/arm/include/asm/Kbuild b/arch/arm/include/asm/Kbuild index a8a4eb7f6dae..1465d4609929 100644 --- a/arch/arm/include/asm/Kbuild +++ b/arch/arm/include/asm/Kbuild | |||
@@ -14,7 +14,6 @@ generic-y += parport.h | |||
14 | generic-y += preempt.h | 14 | generic-y += preempt.h |
15 | generic-y += rwsem.h | 15 | generic-y += rwsem.h |
16 | generic-y += seccomp.h | 16 | generic-y += seccomp.h |
17 | generic-y += segment.h | ||
18 | generic-y += serial.h | 17 | generic-y += serial.h |
19 | generic-y += simd.h | 18 | generic-y += simd.h |
20 | generic-y += sizes.h | 19 | generic-y += sizes.h |
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 1e17ea5c372b..fd9574e8f31c 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild | |||
@@ -17,7 +17,6 @@ generic-y += msi.h | |||
17 | generic-y += qrwlock.h | 17 | generic-y += qrwlock.h |
18 | generic-y += qspinlock.h | 18 | generic-y += qspinlock.h |
19 | generic-y += rwsem.h | 19 | generic-y += rwsem.h |
20 | generic-y += segment.h | ||
21 | generic-y += serial.h | 20 | generic-y += serial.h |
22 | generic-y += set_memory.h | 21 | generic-y += set_memory.h |
23 | generic-y += sizes.h | 22 | generic-y += sizes.h |
diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild index 63b4a1705182..220fcca26f0e 100644 --- a/arch/c6x/include/asm/Kbuild +++ b/arch/c6x/include/asm/Kbuild | |||
@@ -28,7 +28,6 @@ generic-y += pci.h | |||
28 | generic-y += percpu.h | 28 | generic-y += percpu.h |
29 | generic-y += pgalloc.h | 29 | generic-y += pgalloc.h |
30 | generic-y += preempt.h | 30 | generic-y += preempt.h |
31 | generic-y += segment.h | ||
32 | generic-y += serial.h | 31 | generic-y += serial.h |
33 | generic-y += shmparam.h | 32 | generic-y += shmparam.h |
34 | generic-y += tlbflush.h | 33 | generic-y += tlbflush.h |
diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild index b25fd42aa0f4..75658fea8bfc 100644 --- a/arch/hexagon/include/asm/Kbuild +++ b/arch/hexagon/include/asm/Kbuild | |||
@@ -28,7 +28,6 @@ generic-y += percpu.h | |||
28 | generic-y += preempt.h | 28 | generic-y += preempt.h |
29 | generic-y += rwsem.h | 29 | generic-y += rwsem.h |
30 | generic-y += sections.h | 30 | generic-y += sections.h |
31 | generic-y += segment.h | ||
32 | generic-y += serial.h | 31 | generic-y += serial.h |
33 | generic-y += shmparam.h | 32 | generic-y += shmparam.h |
34 | generic-y += sizes.h | 33 | generic-y += sizes.h |
diff --git a/arch/hexagon/include/asm/uaccess.h b/arch/hexagon/include/asm/uaccess.h index a30e58d5f351..7a34092e8b58 100644 --- a/arch/hexagon/include/asm/uaccess.h +++ b/arch/hexagon/include/asm/uaccess.h | |||
@@ -24,7 +24,6 @@ | |||
24 | * User space memory access functions | 24 | * User space memory access functions |
25 | */ | 25 | */ |
26 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
27 | #include <asm/segment.h> | ||
28 | #include <asm/sections.h> | 27 | #include <asm/sections.h> |
29 | 28 | ||
30 | /* | 29 | /* |
diff --git a/arch/ia64/include/asm/segment.h b/arch/ia64/include/asm/segment.h deleted file mode 100644 index b89e2b3d648f..000000000000 --- a/arch/ia64/include/asm/segment.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef _ASM_IA64_SEGMENT_H | ||
2 | #define _ASM_IA64_SEGMENT_H | ||
3 | |||
4 | /* Only here because we have some old header files that expect it.. */ | ||
5 | |||
6 | #endif /* _ASM_IA64_SEGMENT_H */ | ||
diff --git a/arch/mips/include/asm/Kbuild b/arch/mips/include/asm/Kbuild index 87b86cdf126a..a03cd4e24f37 100644 --- a/arch/mips/include/asm/Kbuild +++ b/arch/mips/include/asm/Kbuild | |||
@@ -19,7 +19,6 @@ generic-y += preempt.h | |||
19 | generic-y += qrwlock.h | 19 | generic-y += qrwlock.h |
20 | generic-y += qspinlock.h | 20 | generic-y += qspinlock.h |
21 | generic-y += sections.h | 21 | generic-y += sections.h |
22 | generic-y += segment.h | ||
23 | generic-y += trace_clock.h | 22 | generic-y += trace_clock.h |
24 | generic-y += unaligned.h | 23 | generic-y += unaligned.h |
25 | generic-y += user.h | 24 | generic-y += user.h |
diff --git a/arch/nds32/include/asm/Kbuild b/arch/nds32/include/asm/Kbuild index 64ceff7ab99b..668d3094921f 100644 --- a/arch/nds32/include/asm/Kbuild +++ b/arch/nds32/include/asm/Kbuild | |||
@@ -36,7 +36,6 @@ generic-y += pci.h | |||
36 | generic-y += percpu.h | 36 | generic-y += percpu.h |
37 | generic-y += preempt.h | 37 | generic-y += preempt.h |
38 | generic-y += sections.h | 38 | generic-y += sections.h |
39 | generic-y += segment.h | ||
40 | generic-y += serial.h | 39 | generic-y += serial.h |
41 | generic-y += sizes.h | 40 | generic-y += sizes.h |
42 | generic-y += switch_to.h | 41 | generic-y += switch_to.h |
diff --git a/arch/nios2/include/asm/Kbuild b/arch/nios2/include/asm/Kbuild index 8fde4fa2c34f..0b982dc585ff 100644 --- a/arch/nios2/include/asm/Kbuild +++ b/arch/nios2/include/asm/Kbuild | |||
@@ -31,7 +31,6 @@ generic-y += pci.h | |||
31 | generic-y += percpu.h | 31 | generic-y += percpu.h |
32 | generic-y += preempt.h | 32 | generic-y += preempt.h |
33 | generic-y += sections.h | 33 | generic-y += sections.h |
34 | generic-y += segment.h | ||
35 | generic-y += serial.h | 34 | generic-y += serial.h |
36 | generic-y += spinlock.h | 35 | generic-y += spinlock.h |
37 | generic-y += topology.h | 36 | generic-y += topology.h |
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 5a73e2956ac4..08b1c3d2dbbb 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild | |||
@@ -32,7 +32,6 @@ generic-y += qspinlock.h | |||
32 | generic-y += qrwlock_types.h | 32 | generic-y += qrwlock_types.h |
33 | generic-y += qrwlock.h | 33 | generic-y += qrwlock.h |
34 | generic-y += sections.h | 34 | generic-y += sections.h |
35 | generic-y += segment.h | ||
36 | generic-y += shmparam.h | 35 | generic-y += shmparam.h |
37 | generic-y += switch_to.h | 36 | generic-y += switch_to.h |
38 | generic-y += topology.h | 37 | generic-y += topology.h |
diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kernel/ptrace.c index eb97a8e7c8aa..e8fb2a764f46 100644 --- a/arch/openrisc/kernel/ptrace.c +++ b/arch/openrisc/kernel/ptrace.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/elf.h> | 30 | #include <linux/elf.h> |
31 | 31 | ||
32 | #include <asm/thread_info.h> | 32 | #include <asm/thread_info.h> |
33 | #include <asm/segment.h> | ||
34 | #include <asm/page.h> | 33 | #include <asm/page.h> |
35 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
36 | 35 | ||
diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c index c605bdad1746..17c00d06d91b 100644 --- a/arch/openrisc/kernel/setup.c +++ b/arch/openrisc/kernel/setup.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <linux/device.h> | 39 | #include <linux/device.h> |
40 | 40 | ||
41 | #include <asm/sections.h> | 41 | #include <asm/sections.h> |
42 | #include <asm/segment.h> | ||
43 | #include <asm/pgtable.h> | 42 | #include <asm/pgtable.h> |
44 | #include <asm/types.h> | 43 | #include <asm/types.h> |
45 | #include <asm/setup.h> | 44 | #include <asm/setup.h> |
diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c index d8981cbb852a..6ed7293ef007 100644 --- a/arch/openrisc/kernel/traps.c +++ b/arch/openrisc/kernel/traps.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/kallsyms.h> | 35 | #include <linux/kallsyms.h> |
36 | #include <linux/uaccess.h> | 36 | #include <linux/uaccess.h> |
37 | 37 | ||
38 | #include <asm/segment.h> | ||
39 | #include <asm/io.h> | 38 | #include <asm/io.h> |
40 | #include <asm/pgtable.h> | 39 | #include <asm/pgtable.h> |
41 | #include <asm/unwinder.h> | 40 | #include <asm/unwinder.h> |
diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index caeb4184e8a6..e8a640c7e74c 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/blkdev.h> /* for initrd_* */ | 32 | #include <linux/blkdev.h> /* for initrd_* */ |
33 | #include <linux/pagemap.h> | 33 | #include <linux/pagemap.h> |
34 | 34 | ||
35 | #include <asm/segment.h> | ||
36 | #include <asm/pgalloc.h> | 35 | #include <asm/pgalloc.h> |
37 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
38 | #include <asm/dma.h> | 37 | #include <asm/dma.h> |
diff --git a/arch/openrisc/mm/tlb.c b/arch/openrisc/mm/tlb.c index 6c253a2e86bc..7f9f50161dfe 100644 --- a/arch/openrisc/mm/tlb.c +++ b/arch/openrisc/mm/tlb.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
27 | #include <linux/init.h> | 27 | #include <linux/init.h> |
28 | 28 | ||
29 | #include <asm/segment.h> | ||
30 | #include <asm/tlbflush.h> | 29 | #include <asm/tlbflush.h> |
31 | #include <asm/pgtable.h> | 30 | #include <asm/pgtable.h> |
32 | #include <asm/mmu_context.h> | 31 | #include <asm/mmu_context.h> |
diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild index 6f49e77d82a2..d19f49cb0add 100644 --- a/arch/parisc/include/asm/Kbuild +++ b/arch/parisc/include/asm/Kbuild | |||
@@ -18,7 +18,6 @@ generic-y += mm-arch-hooks.h | |||
18 | generic-y += percpu.h | 18 | generic-y += percpu.h |
19 | generic-y += preempt.h | 19 | generic-y += preempt.h |
20 | generic-y += seccomp.h | 20 | generic-y += seccomp.h |
21 | generic-y += segment.h | ||
22 | generic-y += trace_clock.h | 21 | generic-y += trace_clock.h |
23 | generic-y += user.h | 22 | generic-y += user.h |
24 | generic-y += vga.h | 23 | generic-y += vga.h |
diff --git a/arch/s390/include/asm/segment.h b/arch/s390/include/asm/segment.h deleted file mode 100644 index 97a0582b8d0f..000000000000 --- a/arch/s390/include/asm/segment.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | #ifndef _ASM_SEGMENT_H | ||
3 | #define _ASM_SEGMENT_H | ||
4 | |||
5 | #endif | ||
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c index cd3df5514552..ad71132374f0 100644 --- a/arch/s390/kernel/ptrace.c +++ b/arch/s390/kernel/ptrace.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/seccomp.h> | 24 | #include <linux/seccomp.h> |
25 | #include <linux/compat.h> | 25 | #include <linux/compat.h> |
26 | #include <trace/syscall.h> | 26 | #include <trace/syscall.h> |
27 | #include <asm/segment.h> | ||
28 | #include <asm/page.h> | 27 | #include <asm/page.h> |
29 | #include <asm/pgtable.h> | 28 | #include <asm/pgtable.h> |
30 | #include <asm/pgalloc.h> | 29 | #include <asm/pgalloc.h> |
diff --git a/arch/unicore32/include/asm/Kbuild b/arch/unicore32/include/asm/Kbuild index 1d1544b6ca74..a6e4e06caa0a 100644 --- a/arch/unicore32/include/asm/Kbuild +++ b/arch/unicore32/include/asm/Kbuild | |||
@@ -26,7 +26,6 @@ generic-y += parport.h | |||
26 | generic-y += percpu.h | 26 | generic-y += percpu.h |
27 | generic-y += preempt.h | 27 | generic-y += preempt.h |
28 | generic-y += sections.h | 28 | generic-y += sections.h |
29 | generic-y += segment.h | ||
30 | generic-y += serial.h | 29 | generic-y += serial.h |
31 | generic-y += shmparam.h | 30 | generic-y += shmparam.h |
32 | generic-y += sizes.h | 31 | generic-y += sizes.h |
diff --git a/arch/xtensa/include/asm/segment.h b/arch/xtensa/include/asm/segment.h deleted file mode 100644 index 98964ad15ca2..000000000000 --- a/arch/xtensa/include/asm/segment.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* | ||
2 | * include/asm-xtensa/segment.h | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 2001 - 2005 Tensilica Inc. | ||
9 | */ | ||
10 | |||
11 | #ifndef _XTENSA_SEGMENT_H | ||
12 | #define _XTENSA_SEGMENT_H | ||
13 | |||
14 | #include <linux/uaccess.h> | ||
15 | |||
16 | #endif /* _XTENSA_SEGEMENT_H */ | ||
diff --git a/include/asm-generic/segment.h b/include/asm-generic/segment.h deleted file mode 100644 index 5580eace622c..000000000000 --- a/include/asm-generic/segment.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef __ASM_GENERIC_SEGMENT_H | ||
2 | #define __ASM_GENERIC_SEGMENT_H | ||
3 | /* | ||
4 | * Only here because we have some old header files that expect it... | ||
5 | * | ||
6 | * New architectures probably don't want to have their own version. | ||
7 | */ | ||
8 | |||
9 | #endif /* __ASM_GENERIC_SEGMENT_H */ | ||