Skip to content

Commit

Permalink
KVM: s390: mark __insn32_query() as __always_inline
Browse files Browse the repository at this point in the history
__insn32_query() will not compile if the compiler decides to not
inline it, since it contains an inline assembly with an "i" constraint
with variable contents.

Acked-by: Christian Borntraeger <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
heicarst authored and Vasily Gorbik committed Oct 5, 2019
1 parent b1c41ac commit d0dea73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static inline int plo_test_bit(unsigned char nr)
return cc == 0;
}

static inline void __insn32_query(unsigned int opcode, u8 *query)
static __always_inline void __insn32_query(unsigned int opcode, u8 *query)
{
register unsigned long r0 asm("0") = 0; /* query function */
register unsigned long r1 asm("1") = (unsigned long) query;
Expand Down

0 comments on commit d0dea73

Please sign in to comment.