From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH kvm-unit-test] x86/emulator: Fix inline assembler warning Date: Thu, 12 Mar 2015 22:13:04 -0300 Message-ID: <20150313011304.GD17648@amt.cnet> References: <54FDE39B.9040504@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35141 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbbCMBNX (ORCPT ); Thu, 12 Mar 2015 21:13:23 -0400 Content-Disposition: inline In-Reply-To: <54FDE39B.9040504@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Mar 09, 2015 at 07:16:59PM +0100, Jan Kiszka wrote: > Code compiles to the same binary, but now with one warning less. > > Signed-off-by: Jan Kiszka > --- > x86/emulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/x86/emulator.c b/x86/emulator.c > index 0964e6a..e5c1c6b 100644 > --- a/x86/emulator.c > +++ b/x86/emulator.c > @@ -838,7 +838,7 @@ static void test_jmp_noncanonical(uint64_t *mem) > > exceptions = 0; > handle_exception(GP_VECTOR, advance_rip_by_3_and_note_exception); > - asm volatile ("jmp %0" : : "m"(*mem)); > + asm volatile ("jmp *%0" : : "m"(*mem)); > report("jump to non-canonical address", exceptions == 1); > handle_exception(GP_VECTOR, 0); > } > -- > 2.1.4 Applied, thanks.