Skip to content

Commit a703263

Browse files
nickdesaulniersmpe
authored andcommitted
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
1 parent 7074695 commit a703263

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/powerpc/include/asm/cache.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static inline u32 l1_icache_bytes(void)
9797

9898
#endif
9999

100-
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
100+
#define __read_mostly __section(.data..read_mostly)
101101

102102
#ifdef CONFIG_PPC_BOOK3S_32
103103
extern long _get_L2CR(void);

‎arch/powerpc/kernel/btext.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static void scrollscreen(void);
2727
#endif
2828

29-
#define __force_data __attribute__((__section__(".data")))
29+
#define __force_data __section(.data)
3030

3131
static int g_loc_X __force_data;
3232
static int g_loc_Y __force_data;

0 commit comments

Comments
 (0)