Re: [PATCH kvm-unit-test] x86/emulator: Fix inline assembler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <jan.kiszka@xxxxxxxxxxx>
> ---
>  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.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux