summaryrefslogtreecommitdiff
path: root/arch/arc/include/asm/linkage.h
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2019-08-12 14:50:35 -0700
committerVineet Gupta <vgupta@synopsys.com>2019-08-26 22:37:12 +0530
commit2f029413cbfbfe519d294c6ac83a0c00e2a48a97 (patch)
treebbeb85927c0ba8f935340f39a7975803d75457cb /arch/arc/include/asm/linkage.h
parentd85f6b93a76e74f1cbd0c14fb685cc1bc8df9044 (diff)
arc: 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: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/linkage.h')
-rw-r--r--arch/arc/include/asm/linkage.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arc/include/asm/linkage.h b/arch/arc/include/asm/linkage.h
index a0eeb9f8f0a9..d9ee43c6b7db 100644
--- a/arch/arc/include/asm/linkage.h
+++ b/arch/arc/include/asm/linkage.h
@@ -62,15 +62,15 @@
#else /* !__ASSEMBLY__ */
#ifdef CONFIG_ARC_HAS_ICCM
-#define __arcfp_code __attribute__((__section__(".text.arcfp")))
+#define __arcfp_code __section(.text.arcfp)
#else
-#define __arcfp_code __attribute__((__section__(".text")))
+#define __arcfp_code __section(.text)
#endif
#ifdef CONFIG_ARC_HAS_DCCM
-#define __arcfp_data __attribute__((__section__(".data.arcfp")))
+#define __arcfp_data __section(.data.arcfp)
#else
-#define __arcfp_data __attribute__((__section__(".data")))
+#define __arcfp_data __section(.data)
#endif
#endif /* __ASSEMBLY__ */