summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-06-07 04:23:07 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-06-13 09:58:23 -0400
commit72a9b02d3b55d5ffeb4a00ad99b2c2471ebfa23c (patch)
treeee72a10b0e42ff7dba596f15840a93c81bcd5402
parentd07a980c1b8d7ac18854bae94a4e7aeabce933b8 (diff)
s390: use __section macro everywhere
Small cleanup patch to use the shorter __section macro everywhere. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/include/asm/cache.h2
-rw-r--r--arch/s390/kernel/ipl.c6
-rw-r--r--arch/s390/kernel/setup.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/include/asm/cache.h b/arch/s390/include/asm/cache.h
index 4d7ccac5fd1d..05219a5e0b2f 100644
--- a/arch/s390/include/asm/cache.h
+++ b/arch/s390/include/asm/cache.h
@@ -13,6 +13,6 @@
13#define L1_CACHE_SHIFT 8 13#define L1_CACHE_SHIFT 8
14#define NET_SKB_PAD 32 14#define NET_SKB_PAD 32
15 15
16#define __read_mostly __attribute__((__section__(".data..read_mostly"))) 16#define __read_mostly __section(.data..read_mostly)
17 17
18#endif 18#endif
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
index f20abdb5630a..a6d2a998e328 100644
--- a/arch/s390/kernel/ipl.c
+++ b/arch/s390/kernel/ipl.c
@@ -121,9 +121,9 @@ static char *dump_type_str(enum dump_type type)
121 * Must be in data section since the bss section 121 * Must be in data section since the bss section
122 * is not cleared when these are accessed. 122 * is not cleared when these are accessed.
123 */ 123 */
124static u8 ipl_ssid __attribute__((__section__(".data"))) = 0; 124static u8 ipl_ssid __section(.data) = 0;
125static u16 ipl_devno __attribute__((__section__(".data"))) = 0; 125static u16 ipl_devno __section(.data) = 0;
126u32 ipl_flags __attribute__((__section__(".data"))) = 0; 126u32 ipl_flags __section(.data) = 0;
127 127
128enum ipl_method { 128enum ipl_method {
129 REIPL_METHOD_CCW_CIO, 129 REIPL_METHOD_CCW_CIO,
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 9b4bb9d9275f..00e38f0c75df 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -289,7 +289,7 @@ static int __init parse_vmalloc(char *arg)
289} 289}
290early_param("vmalloc", parse_vmalloc); 290early_param("vmalloc", parse_vmalloc);
291 291
292void *restart_stack __attribute__((__section__(".data"))); 292void *restart_stack __section(.data);
293 293
294static void __init setup_lowcore(void) 294static void __init setup_lowcore(void)
295{ 295{