From patchwork Sat Mar 14 03:30:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 11438199 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65D556CA for ; Sat, 14 Mar 2020 03:30:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4834A20658 for ; Sat, 14 Mar 2020 03:30:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbgCNDay (ORCPT ); Fri, 13 Mar 2020 23:30:54 -0400 Received: from mga14.intel.com ([192.55.52.115]:58624 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgCNDay (ORCPT ); Fri, 13 Mar 2020 23:30:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2020 20:30:53 -0700 IronPort-SDR: RsJpAh5vDst8J0O815UZuGaP14477JunOjsvcWN+e8B8ZpVC1UvDt1FalBa6KIQTNf0kyiT6RJ 3StsXyfZbX6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,551,1574150400"; d="scan'208";a="322965628" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.202]) by orsmga001.jf.intel.com with ESMTP; 13 Mar 2020 20:30:53 -0700 From: Sean Christopherson To: Jarkko Sakkinen Cc: linux-sgx@vger.kernel.org Subject: [PATCH] x86/sgx: Fix a build error introduced by WARN->ENCLS_WARN conversion Date: Fri, 13 Mar 2020 20:30:51 -0700 Message-Id: <20200314033051.32137-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-sgx-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org Remove an unwanted param when invoking ENCLS_WARN on EREMOVE failure. Signed-off-by: Sean Christopherson --- arch/x86/kernel/cpu/sgx/reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/sgx/reclaim.c b/arch/x86/kernel/cpu/sgx/reclaim.c index 9afe5e7d50a6..eb5008c37b64 100644 --- a/arch/x86/kernel/cpu/sgx/reclaim.c +++ b/arch/x86/kernel/cpu/sgx/reclaim.c @@ -352,7 +352,7 @@ static void sgx_reclaimer_write(struct sgx_epc_page *epc_page, if (atomic_read(&encl->flags) & SGX_ENCL_DEAD) { ret = __eremove(sgx_epc_addr(epc_page)); - ENCLS_WARN(ret, "EREMOVE returned %d\n", ret); + ENCLS_WARN(ret, "EREMOVE returned %d\n"); } else { sgx_encl_ewb(epc_page, backing); }