MIPS: mark ginvt() as __always_inline [Linux 5.2]

MIPS: mark ginvt() as __always_inline [Linux 5.2]

This Linux kernel change "MIPS: mark ginvt() as __always_inline" is included in the Linux 5.2 release. This change is authored by Masahiro Yamada <yamada.masahiro [at] socionext.com> on Tue May 21 15:20:39 2019 +0900. The commit for this change in Linux stable tree is 6074c33 (patch).

MIPS: mark ginvt() as __always_inline

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

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 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 49c6dbe..6eb7c2b 100644
--- a/arch/mips/include/asm/ginvt.h
+++ b/arch/mips/include/asm/ginvt.h
@@ -19,7 +19,7 @@ enum ginvt_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"

Leave a Reply

Your email address will not be published. Required fields are marked *