Skip to content

Commit d0dea73

Browse files
heicarstVasily Gorbik
authored andcommitted
KVM: s390: mark __insn32_query() as __always_inline
__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]>
1 parent b1c41ac commit d0dea73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static inline int plo_test_bit(unsigned char nr)
332332
return cc == 0;
333333
}
334334

335-
static inline void __insn32_query(unsigned int opcode, u8 *query)
335+
static __always_inline void __insn32_query(unsigned int opcode, u8 *query)
336336
{
337337
register unsigned long r0 asm("0") = 0; /* query function */
338338
register unsigned long r1 asm("1") = (unsigned long) query;

0 commit comments

Comments
 (0)