aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/cache.h
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2019-08-12 14:50:43 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2020-03-27 00:16:32 +1100
commita7032637b54186e5649917679727d7feaec932b1 (patch)
tree39a4e4695170c4133aab6e814d4c8da9ef7f9994 /arch/powerpc/include/asm/cache.h
parentpowerpc/prom_init: Remove leftover comment (diff)
downloadlinux-dev-a7032637b54186e5649917679727d7feaec932b1.tar.xz
linux-dev-a7032637b54186e5649917679727d7feaec932b1.zip
powerpc: Prefer __section and __printf from compiler_attributes.h
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
Diffstat (limited to 'arch/powerpc/include/asm/cache.h')
-rw-r--r--arch/powerpc/include/asm/cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h
index 72b81015cebe..609cab1d58f2 100644
--- a/arch/powerpc/include/asm/cache.h
+++ b/arch/powerpc/include/asm/cache.h
@@ -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);