diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-07-05 12:24:59 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-30 08:48:17 -0400 |
commit | 5c35a02c545a7bbe77f3a1ae337d9e29beed079b (patch) | |
tree | d453aa13f5c220df19135b22c4137b890d9715f6 | |
parent | ec0c464cdbf38bf6ddabec8bfa595bd421cab203 (diff) |
powerpc: clean the inclusion of stringify.h
Only include linux/stringify.h is files using __stringify()
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/asm/dcr-native.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/reg_fsl_emb.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/synch.h | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/thread_info.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom.c | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom_init.c | 1 | ||||
-rw-r--r-- | arch/powerpc/kvm/book3s_64_vio_hv.c | 1 | ||||
-rw-r--r-- | arch/powerpc/lib/locks.c | 1 | ||||
-rw-r--r-- | arch/powerpc/perf/req-gen/_begin.h | 2 | ||||
-rw-r--r-- | arch/powerpc/perf/req-gen/perf.h | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/cbe_thermal.c | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/sputrace.h | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/vas.h | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/mobility.c | 1 |
15 files changed, 11 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/dcr-native.h b/arch/powerpc/include/asm/dcr-native.h index 4a2beef74277..151dff555f50 100644 --- a/arch/powerpc/include/asm/dcr-native.h +++ b/arch/powerpc/include/asm/dcr-native.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/spinlock.h> | 25 | #include <linux/spinlock.h> |
26 | #include <asm/cputable.h> | 26 | #include <asm/cputable.h> |
27 | #include <asm/cpu_has_feature.h> | 27 | #include <asm/cpu_has_feature.h> |
28 | #include <linux/stringify.h> | ||
28 | 29 | ||
29 | typedef struct { | 30 | typedef struct { |
30 | unsigned int base; | 31 | unsigned int base; |
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 954edf935158..665af14850e4 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -12,7 +12,6 @@ | |||
12 | #ifndef _ASM_POWERPC_PPC_OPCODE_H | 12 | #ifndef _ASM_POWERPC_PPC_OPCODE_H |
13 | #define _ASM_POWERPC_PPC_OPCODE_H | 13 | #define _ASM_POWERPC_PPC_OPCODE_H |
14 | 14 | ||
15 | #include <linux/stringify.h> | ||
16 | #include <asm/asm-const.h> | 15 | #include <asm/asm-const.h> |
17 | 16 | ||
18 | #define __REG_R0 0 | 17 | #define __REG_R0 0 |
diff --git a/arch/powerpc/include/asm/reg_fsl_emb.h b/arch/powerpc/include/asm/reg_fsl_emb.h index d7ccf93e6279..a21f529c43d9 100644 --- a/arch/powerpc/include/asm/reg_fsl_emb.h +++ b/arch/powerpc/include/asm/reg_fsl_emb.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #ifndef __ASM_POWERPC_REG_FSL_EMB_H__ | 7 | #ifndef __ASM_POWERPC_REG_FSL_EMB_H__ |
8 | #define __ASM_POWERPC_REG_FSL_EMB_H__ | 8 | #define __ASM_POWERPC_REG_FSL_EMB_H__ |
9 | 9 | ||
10 | #include <linux/stringify.h> | ||
11 | |||
10 | #ifndef __ASSEMBLY__ | 12 | #ifndef __ASSEMBLY__ |
11 | /* Performance Monitor Registers */ | 13 | /* Performance Monitor Registers */ |
12 | #define mfpmr(rn) ({unsigned int rval; \ | 14 | #define mfpmr(rn) ({unsigned int rval; \ |
diff --git a/arch/powerpc/include/asm/synch.h b/arch/powerpc/include/asm/synch.h index f6f8c75bbb24..aca70fb43147 100644 --- a/arch/powerpc/include/asm/synch.h +++ b/arch/powerpc/include/asm/synch.h | |||
@@ -3,7 +3,6 @@ | |||
3 | #define _ASM_POWERPC_SYNCH_H | 3 | #define _ASM_POWERPC_SYNCH_H |
4 | #ifdef __KERNEL__ | 4 | #ifdef __KERNEL__ |
5 | 5 | ||
6 | #include <linux/stringify.h> | ||
7 | #include <asm/feature-fixups.h> | 6 | #include <asm/feature-fixups.h> |
8 | #include <asm/asm-const.h> | 7 | #include <asm/asm-const.h> |
9 | 8 | ||
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h index ae554b6fe6b9..3c0002044bc9 100644 --- a/arch/powerpc/include/asm/thread_info.h +++ b/arch/powerpc/include/asm/thread_info.h | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/cache.h> | 27 | #include <linux/cache.h> |
28 | #include <asm/processor.h> | 28 | #include <asm/processor.h> |
29 | #include <asm/page.h> | 29 | #include <asm/page.h> |
30 | #include <linux/stringify.h> | ||
31 | #include <asm/accounting.h> | 30 | #include <asm/accounting.h> |
32 | 31 | ||
33 | /* | 32 | /* |
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 8f32f14ba508..c4d7078e5295 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/spinlock.h> | 23 | #include <linux/spinlock.h> |
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <linux/pci.h> | 25 | #include <linux/pci.h> |
26 | #include <linux/stringify.h> | ||
27 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
28 | #include <linux/initrd.h> | 27 | #include <linux/initrd.h> |
29 | #include <linux/bitops.h> | 28 | #include <linux/bitops.h> |
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index c45fb463c9e5..0433bf24a10d 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/types.h> | 27 | #include <linux/types.h> |
28 | #include <linux/pci.h> | 28 | #include <linux/pci.h> |
29 | #include <linux/proc_fs.h> | 29 | #include <linux/proc_fs.h> |
30 | #include <linux/stringify.h> | ||
31 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
32 | #include <linux/initrd.h> | 31 | #include <linux/initrd.h> |
33 | #include <linux/bitops.h> | 32 | #include <linux/bitops.h> |
diff --git a/arch/powerpc/kvm/book3s_64_vio_hv.c b/arch/powerpc/kvm/book3s_64_vio_hv.c index d4bcd1b17b09..12318fa62655 100644 --- a/arch/powerpc/kvm/book3s_64_vio_hv.c +++ b/arch/powerpc/kvm/book3s_64_vio_hv.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/hugetlb.h> | 27 | #include <linux/hugetlb.h> |
28 | #include <linux/list.h> | 28 | #include <linux/list.h> |
29 | #include <linux/stringify.h> | ||
29 | 30 | ||
30 | #include <asm/tlbflush.h> | 31 | #include <asm/tlbflush.h> |
31 | #include <asm/kvm_ppc.h> | 32 | #include <asm/kvm_ppc.h> |
diff --git a/arch/powerpc/lib/locks.c b/arch/powerpc/lib/locks.c index b7b1237d4aa6..35a0ef932e1a 100644 --- a/arch/powerpc/lib/locks.c +++ b/arch/powerpc/lib/locks.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/spinlock.h> | 16 | #include <linux/spinlock.h> |
17 | #include <linux/export.h> | 17 | #include <linux/export.h> |
18 | #include <linux/stringify.h> | ||
19 | #include <linux/smp.h> | 18 | #include <linux/smp.h> |
20 | 19 | ||
21 | /* waiting for a spinlock... */ | 20 | /* waiting for a spinlock... */ |
diff --git a/arch/powerpc/perf/req-gen/_begin.h b/arch/powerpc/perf/req-gen/_begin.h index 549f8782c52d..a200b86eba3b 100644 --- a/arch/powerpc/perf/req-gen/_begin.h +++ b/arch/powerpc/perf/req-gen/_begin.h | |||
@@ -3,6 +3,8 @@ | |||
3 | #ifndef POWERPC_PERF_REQ_GEN_H_ | 3 | #ifndef POWERPC_PERF_REQ_GEN_H_ |
4 | #define POWERPC_PERF_REQ_GEN_H_ | 4 | #define POWERPC_PERF_REQ_GEN_H_ |
5 | 5 | ||
6 | #include <linux/stringify.h> | ||
7 | |||
6 | #define CAT2_STR_(t, s) __stringify(t/s) | 8 | #define CAT2_STR_(t, s) __stringify(t/s) |
7 | #define CAT2_STR(t, s) CAT2_STR_(t, s) | 9 | #define CAT2_STR(t, s) CAT2_STR_(t, s) |
8 | #define I(...) __VA_ARGS__ | 10 | #define I(...) __VA_ARGS__ |
diff --git a/arch/powerpc/perf/req-gen/perf.h b/arch/powerpc/perf/req-gen/perf.h index 871a9a1766c2..fa9bc804e67a 100644 --- a/arch/powerpc/perf/req-gen/perf.h +++ b/arch/powerpc/perf/req-gen/perf.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #define LINUX_POWERPC_PERF_REQ_GEN_PERF_H_ | 3 | #define LINUX_POWERPC_PERF_REQ_GEN_PERF_H_ |
4 | 4 | ||
5 | #include <linux/perf_event.h> | 5 | #include <linux/perf_event.h> |
6 | #include <linux/stringify.h> | ||
6 | 7 | ||
7 | #ifndef REQUEST_FILE | 8 | #ifndef REQUEST_FILE |
8 | #error "REQUEST_FILE must be defined before including" | 9 | #error "REQUEST_FILE must be defined before including" |
diff --git a/arch/powerpc/platforms/cell/cbe_thermal.c b/arch/powerpc/platforms/cell/cbe_thermal.c index 2c15ff094483..55aac74e1cb9 100644 --- a/arch/powerpc/platforms/cell/cbe_thermal.c +++ b/arch/powerpc/platforms/cell/cbe_thermal.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <linux/device.h> | 49 | #include <linux/device.h> |
50 | #include <linux/kernel.h> | 50 | #include <linux/kernel.h> |
51 | #include <linux/cpu.h> | 51 | #include <linux/cpu.h> |
52 | #include <linux/stringify.h> | ||
52 | #include <asm/spu.h> | 53 | #include <asm/spu.h> |
53 | #include <asm/io.h> | 54 | #include <asm/io.h> |
54 | #include <asm/prom.h> | 55 | #include <asm/prom.h> |
diff --git a/arch/powerpc/platforms/cell/spufs/sputrace.h b/arch/powerpc/platforms/cell/spufs/sputrace.h index d557e999b662..1def11e911ac 100644 --- a/arch/powerpc/platforms/cell/spufs/sputrace.h +++ b/arch/powerpc/platforms/cell/spufs/sputrace.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #define _TRACE_SPUFS_H | 3 | #define _TRACE_SPUFS_H |
4 | 4 | ||
5 | #include <linux/tracepoint.h> | 5 | #include <linux/tracepoint.h> |
6 | #include <linux/stringify.h> | ||
6 | 7 | ||
7 | #undef TRACE_SYSTEM | 8 | #undef TRACE_SYSTEM |
8 | #define TRACE_SYSTEM spufs | 9 | #define TRACE_SYSTEM spufs |
diff --git a/arch/powerpc/platforms/powernv/vas.h b/arch/powerpc/platforms/powernv/vas.h index ae0100fd35bb..f5493dbdd7ff 100644 --- a/arch/powerpc/platforms/powernv/vas.h +++ b/arch/powerpc/platforms/powernv/vas.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/dcache.h> | 16 | #include <linux/dcache.h> |
17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
18 | #include <linux/stringify.h> | ||
18 | 19 | ||
19 | /* | 20 | /* |
20 | * Overview of Virtual Accelerator Switchboard (VAS). | 21 | * Overview of Virtual Accelerator Switchboard (VAS). |
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c index 8a8033a249c7..f0e30dc94988 100644 --- a/arch/powerpc/platforms/pseries/mobility.c +++ b/arch/powerpc/platforms/pseries/mobility.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/device.h> | 17 | #include <linux/device.h> |
18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/stringify.h> | ||
20 | 21 | ||
21 | #include <asm/machdep.h> | 22 | #include <asm/machdep.h> |
22 | #include <asm/rtas.h> | 23 | #include <asm/rtas.h> |