]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
MIPS: mark ginvt() as __always_inline
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 21 May 2019 06:20:39 +0000 (15:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:34:48 +0000 (11:34 +0800)
[ Upstream commit 6074c33c6b2eabc70867ef76d57ca256e9ea9da7 ]

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>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/include/asm/ginvt.h

index 49c6dbe37338ff328d930d721b7474011cc2107f..6eb7c2b94dc7e7cb55d7b640ecad2aecdfa566d4 100644 (file)
@@ -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"