Linux-MIPS Archive on lore.kernel.org
 help / Atom feed
* [PATCH] MIPS: mark ginvt() as __always_inline
@ 2019-05-21  6:20 Masahiro Yamada
  2019-05-23  1:56 ` Paul Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-05-21  6:20 UTC (permalink / raw)
  To: Paul Burton, linux-mips
  Cc: Masahiro Yamada, Ralf Baechle, James Hogan, linux-kernel

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(-)

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"
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: mark ginvt() as __always_inline
  2019-05-21  6:20 [PATCH] MIPS: mark ginvt() as __always_inline Masahiro Yamada
@ 2019-05-23  1:56 ` Paul Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Burton @ 2019-05-23  1:56 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Paul Burton, linux-mips, Masahiro Yamada, Ralf Baechle,
	James Hogan, linux-kernel, linux-mips

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. ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21  6:20 [PATCH] MIPS: mark ginvt() as __always_inline Masahiro Yamada
2019-05-23  1:56 ` Paul Burton

Linux-MIPS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mips/0 linux-mips/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mips linux-mips/ https://lore.kernel.org/linux-mips \
		linux-mips@vger.kernel.org linux-mips@archiver.kernel.org
	public-inbox-index linux-mips


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-mips


AGPL code for this site: git clone https://public-inbox.org/ public-inbox