git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a77dabc
)
MIPS: regdefs.h: Guard all defines with __ASSEMBLY__
author
Jiaxun Yang
<jiaxun.yang@flygoat.com>
Fri, 9 Feb 2024 18:07:48 +0000
(18:07 +0000)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 11:41:51 +0000
(12:41 +0100)
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>
arch/mips/include/asm/regdef.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/regdef.h
b/arch/mips/include/asm/regdef.h
index 3c687df1d5150656bda1a18a485b7b8c9ee5cfb0..87ba7be1a84715d5f0aab47ba9996d08c4ed8448 100644
(file)
--- 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 */