diff mbox series

MIPS: mark ginvt() as __always_inline

Message ID 20190521062039.21492-1-yamada.masahiro@socionext.com (mailing list archive)
State Mainlined
Commit 6074c33c6b2eabc70867ef76d57ca256e9ea9da7
Headers show
Series MIPS: mark ginvt() as __always_inline | expand

Commit Message

Masahiro Yamada May 21, 2019, 6:20 a.m. UTC
To meet the 'i' (immediate) constraint for the asm operands,
this function must be always inlined.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/mips/include/asm/ginvt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Burton May 23, 2019, 1:56 a.m. UTC | #1
Hello,

Masahiro Yamada wrote:
> To meet the 'i' (immediate) constraint for the asm operands,
> this function must be always inlined.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Applied to mips-fixes.

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.burton@mips.com to report it. ]
diff mbox series

Patch

diff --git a/arch/mips/include/asm/ginvt.h b/arch/mips/include/asm/ginvt.h
index 49c6dbe37338..6eb7c2b94dc7 100644
--- a/arch/mips/include/asm/ginvt.h
+++ b/arch/mips/include/asm/ginvt.h
@@ -19,7 +19,7 @@  _ASM_MACRO_1R1I(ginvt, rs, type,
 # define _ASM_SET_GINV
 #endif
 
-static inline void ginvt(unsigned long addr, enum ginvt_type type)
+static __always_inline void ginvt(unsigned long addr, enum ginvt_type type)
 {
 	asm volatile(
 		".set	push\n"