Skip to content

Commit 0703ad2

Browse files
nickdesaulniershdeller
authored andcommitted
parisc: prefer __section 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> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent b67114d commit 0703ad2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#define ARCH_DMA_MINALIGN L1_CACHE_BYTES
2424

25-
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
25+
#define __read_mostly __section(.data..read_mostly)
2626

2727
void parisc_cache_init(void); /* initializes cache-flushing */
2828
void disable_sr_hashing_asm(int); /* low level support for above */

‎arch/parisc/include/asm/ldcw.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
})
5353

5454
#ifdef CONFIG_SMP
55-
# define __lock_aligned __attribute__((__section__(".data..lock_aligned")))
55+
# define __lock_aligned __section(.data..lock_aligned)
5656
#endif
5757

5858
#endif /* __PARISC_LDCW_H */

0 commit comments

Comments
 (0)