From: Jim Mattson Subject: [kvm-unit-tests PATCH] Fix an inline asm constraint Date: Fri, 25 Aug 2017 14:12:26 -0700 Message-ID: <20170825211226.85246-1-jmattson@google.com> Cc: Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-pg0-f54.google.com ([74.125.83.54]:35513 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932374AbdHYVNR (ORCPT ); Fri, 25 Aug 2017 17:13:17 -0400 Received: by mail-pg0-f54.google.com with SMTP id 63so5010869pgc.2 for ; Fri, 25 Aug 2017 14:13:17 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: An x86 move from memory to memory is illegal. Signed-off-by: Jim Mattson --- lib/x86/desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/desc.c b/lib/x86/desc.c index a527291..ffa5e44 100644 --- a/lib/x86/desc.c +++ b/lib/x86/desc.c @@ -250,7 +250,7 @@ unsigned exception_error_code(void) { unsigned short error_code; - asm("mov %%gs:6, %0" : "=rm"(error_code)); + asm("mov %%gs:6, %0" : "=r"(error_code)); return error_code; } -- 2.14.1.342.g6490525c54-goog