s390: use __section macro everywhere
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 7 Jun 2016 08:23:07 +0000 (10:23 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:23 +0000 (15:58 +0200)
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>
arch/s390/include/asm/cache.h
arch/s390/kernel/ipl.c
arch/s390/kernel/setup.c

index 4d7ccac5fd1d693e3875f2eac011d46ff3750a0e..05219a5e0b2fbdfc49c7c762e0ae84aacaf541a1 100644 (file)
@@ -13,6 +13,6 @@
 #define L1_CACHE_SHIFT     8
 #define NET_SKB_PAD       32
 
-#define __read_mostly __attribute__((__section__(".data..read_mostly")))
+#define __read_mostly __section(.data..read_mostly)
 
 #endif
index f20abdb5630adceaa75690907ddf7cdedc098146..a6d2a998e328a2c0da9c6666b337c783a4272f8d 100644 (file)
@@ -121,9 +121,9 @@ static char *dump_type_str(enum dump_type type)
  * Must be in data section since the bss section
  * is not cleared when these are accessed.
  */
-static u8 ipl_ssid __attribute__((__section__(".data"))) = 0;
-static u16 ipl_devno __attribute__((__section__(".data"))) = 0;
-u32 ipl_flags __attribute__((__section__(".data"))) = 0;
+static u8 ipl_ssid __section(.data) = 0;
+static u16 ipl_devno __section(.data) = 0;
+u32 ipl_flags __section(.data) = 0;
 
 enum ipl_method {
        REIPL_METHOD_CCW_CIO,
index 9b4bb9d9275fd00a7dee2c6cbfdcfcc5420e6b23..00e38f0c75dfc15d8594348b8908d35a3b7f75eb 100644 (file)
@@ -289,7 +289,7 @@ static int __init parse_vmalloc(char *arg)
 }
 early_param("vmalloc", parse_vmalloc);
 
-void *restart_stack __attribute__((__section__(".data")));
+void *restart_stack __section(.data);
 
 static void __init setup_lowcore(void)
 {