powerpc: Prefer __section and __printf from compiler_attributes.h
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 12 Aug 2019 21:50:43 +0000 (14:50 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Mar 2020 13:16:32 +0000 (00:16 +1100)
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
[mpe: Drop changes to a/p/boot which doesn't use linux headers]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190812215052.71840-10-ndesaulniers@google.com
arch/powerpc/include/asm/cache.h
arch/powerpc/kernel/btext.c

index 72b81015cebe9aca1266d8eb92030220e5a6e706..609cab1d58f28542e2dccbb2b47fac0e2793d1f9 100644 (file)
@@ -97,7 +97,7 @@ static inline u32 l1_icache_bytes(void)
 
 #endif
 
-#define __read_mostly __attribute__((__section__(".data..read_mostly")))
+#define __read_mostly __section(.data..read_mostly)
 
 #ifdef CONFIG_PPC_BOOK3S_32
 extern long _get_L2CR(void);
index 6dfceaa820e42f99e682c4860fdbf06c5fb69cc1..f57712a5581571df67e9aa8aa45b5e8e81ace478 100644 (file)
@@ -26,7 +26,7 @@
 static void scrollscreen(void);
 #endif
 
-#define __force_data __attribute__((__section__(".data")))
+#define __force_data __section(.data)
 
 static int g_loc_X __force_data;
 static int g_loc_Y __force_data;