summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-02-09 19:07:48 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-02-20 12:41:51 +0100
commit88ca06ec04fab6cdceed5321c74a812ccc2aa519 (patch)
tree339f9ec76b7c55418eb6e6a87e07a7f5b2efdb2d /arch/mips/include
parentMIPS: Unify define of CP0 registers for uasm code (diff)
downloadlinux-88ca06ec04fab6cdceed5321c74a812ccc2aa519.tar.xz
linux-88ca06ec04fab6cdceed5321c74a812ccc2aa519.zip
MIPS: regdefs.h: Guard all defines with __ASSEMBLY__
Those definitions are only meant to be used in pure assembly code. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/regdef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/regdef.h b/arch/mips/include/asm/regdef.h
index 3c687df1d515..87ba7be1a847 100644
--- a/arch/mips/include/asm/regdef.h
+++ b/arch/mips/include/asm/regdef.h
@@ -14,6 +14,7 @@
#include <asm/sgidefs.h>
+#ifdef __ASSEMBLY__
#if _MIPS_SIM == _MIPS_SIM_ABI32
/*
@@ -102,5 +103,6 @@
#define ra $31 /* return address */
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
+#endif /* __ASSEMBLY__ */
#endif /* _ASM_REGDEF_H */