From patchwork Thu Jun 13 15:06:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Naresh Kamboju X-Patchwork-Id: 10992113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 043101515 for ; Thu, 13 Jun 2019 15:06:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E63EC1FF41 for ; Thu, 13 Jun 2019 15:06:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA4C0205A9; Thu, 13 Jun 2019 15:06:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D7FE1FF41 for ; Thu, 13 Jun 2019 15:06:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387453AbfFMPGq (ORCPT ); Thu, 13 Jun 2019 11:06:46 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40891 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732411AbfFMPGq (ORCPT ); Thu, 13 Jun 2019 11:06:46 -0400 Received: by mail-wr1-f66.google.com with SMTP id p11so21192415wre.7 for ; Thu, 13 Jun 2019 08:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HtM1AGVc1eVIFXQ1sHldEbu1uEQVRa418S5hEsNYqe0=; b=sfPXo6e/cP29vyikvR/r9yfo/lKMstC8lfp1L2QuHIQu0/HbXNiAoV6a4tqCnd2BH5 ktYeI4TXcBdXn9+KUIZDOTzaqEVnPrXPBTq4LRBFgket7mNTq4IcKbMgQD4fvuQ6dt+2 XXcvt6706/iHPeFxESkEtOT0bQfVpDQ8IwrtwJWgUuHrOV8c/GN6/2cmcHa8Qxl5Xwo5 W/JoEcG0Eeup9T/DGnZFa8qCdGlHf3FlNHIuGFjUjoXgdiluQV/oUDR+7PF++nR7B3hG H6IsGou19870mQApjVFUdRE6ao1k1c7BQ/ew+F3rfdgV3AEiSydJVs3BXD4pLwZ5Jflv mZNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HtM1AGVc1eVIFXQ1sHldEbu1uEQVRa418S5hEsNYqe0=; b=H/brYxCp6hvq/vhTsPWtfzH4oWD4FcPIc/rUsR1YPdGOmbGHVR+J7kGIdPLhlg9Vcd NRNC+Cex534nZRN6OY1gmiwhrLf1uZ442qSrrDc2zGLPEGKkV92HBpzujwrL1VLae+Vu /L1M1ZnuKp4d4sSlLDD+IkHXEMF54Ann4GtyenC5ieMbtZlQSm3EB4oonW6mPz/hWMfr xmRnJmwXh08s9WuFJWVsplALptgIaOkhJ6QU0KduAC9qOzCit9X0L4j/jiuc4P/y85xG Lu4MYALj8t7bxH9xfFikJU0hAH9tsaKoCAe5IT9wTGCvsyTOXMtg4FtKaMxcBplYRpX9 YciA== X-Gm-Message-State: APjAAAVKOClUb45pXfmpkoqRefDnqSVR5gBv/HWC0o4lJf6r3Z2A8glV XekzijkQ9TmEeKmQ4e6uP0I0Z0kQKb/Dxw== X-Google-Smtp-Source: APXvYqwz80pXXz6U+4/LYbV7C5O28gkrNjLAxNlNRWV3gM0yABrne78/eSLPmDHocS4qh6FyZLw4Kg== X-Received: by 2002:a5d:4941:: with SMTP id r1mr51029774wrs.225.1560438404216; Thu, 13 Jun 2019 08:06:44 -0700 (PDT) Received: from hackbox2.linaro.org ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id j7sm5252873wru.54.2019.06.13.08.06.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 08:06:43 -0700 (PDT) From: Naresh Kamboju To: pbonzini@redhat.com, kvm@vger.kernel.org Cc: lkft-triage@lists.linaro.org, Naresh Kamboju Subject: [kvm-unit-tests PATCH] x86: fix syntax error Date: Thu, 13 Jun 2019 16:06:41 +0100 Message-Id: <20190613150641.4304-1-naresh.kamboju@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes this build error, kvm-unit-tests/lib/x86/processor.h:497:45: error: expected ‘)’ before ‘;’ token return !!((cpuid(0x80000001).d & (1 << 20)); ~ ^ ) Signed-off-by: Naresh Kamboju --- lib/x86/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index 0a65808..823d65d 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -494,7 +494,7 @@ static inline int has_spec_ctrl(void) static inline int cpu_has_efer_nx(void) { - return !!((cpuid(0x80000001).d & (1 << 20)); + return !!((cpuid(0x80000001).d & (1 << 20))); } #endif