Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2856159imm; Sun, 16 Sep 2018 04:40:40 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2ISq99dkyOYuy2n84r7ZrEh6liDJ/gMDwyydqgWqgGDhg09GEBE6W762lnRS/CxtUk7iz X-Received: by 2002:a62:384a:: with SMTP id f71-v6mr21319084pfa.48.1537098040865; Sun, 16 Sep 2018 04:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537098040; cv=none; d=google.com; s=arc-20160816; b=TmGqTL2n2XLh0SCpTdnt0KRpukiAKPet7qkf0HpZCkcuGeCNaFhV0kYhVcLJtNb4Fa mNHaqvFqvyQzE9HoaPkU2LOuGtfXzDiK5j2cbEh1g0sFRxZoDqk5EmyxbQIu9Bemprh7 pWTFpyX8zLE+VbGks8wsUtIzYsD1Yb22fT/Mb3zFPILKpfSRPHFFHM2EMKR8m+hjwzFG mQjssSMcAQsNxj8AxQs979dhJtWxwq7H0pMF1jk116H3krbSJ3uz3cdwiaOxvHujL7sa JMOhE4oKsj2QPCWqL2+d4+Bal182TPHjFnIiyLDRhjPN/tWv0wXbJTEhAABIK1e3+2KM aZYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uI3bflx+lY//vFQ2ZQWIbG1NNd7f+tGSvXoneKPYRyI=; b=BwwneoYi93BSscmNOsFOAohE1paF7kY7b2NIXVHTbnBrk9dn8WLyUQVTWuPxLZflNd HZ7f+ght13xwDVv99anuRcboZVF0lJPs/4z53OHJOZT+Xivx83B0g37Cgd/1riQl7vaG w6VLhffVSybqyaDd42PI/xiAtt8bU3hkVIF3Zxgq0A4GQV9ug3AKZLXCrUYR3L9CA9GW xgN6h03YQsKfJsm6p6ZmmWLSvwfoN9J28REcn/atiBl+S76zFc4Jczctu73N0SgPqagD q0w1lgi2PoOkY1Wu3cYxAhEFRnpXCJjoLfC/SfIvwittFqyGsvGhbWa1+o+sDtrrihwy VtKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k29-v6si12138484pgf.227.2018.09.16.04.40.23; Sun, 16 Sep 2018 04:40:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728186AbeIPRC7 (ORCPT + 99 others); Sun, 16 Sep 2018 13:02:59 -0400 Received: from mga02.intel.com ([134.134.136.20]:45065 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbeIPRC7 (ORCPT ); Sun, 16 Sep 2018 13:02:59 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2018 04:40:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,381,1531810800"; d="scan'208";a="233330898" Received: from wintersr-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.37.137]) by orsmga004.jf.intel.com with ESMTP; 16 Sep 2018 04:40:13 -0700 Date: Sun, 16 Sep 2018 14:40:11 +0300 From: Jarkko Sakkinen To: Sean Christopherson Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Suresh Siddha , Serge Ayoun , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager Message-ID: <20180916114011.GA5040@linux.intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-10-jarkko.sakkinen@linux.intel.com> <1536678279.5992.9.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1536678279.5992.9.camel@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 11, 2018 at 08:04:39AM -0700, Sean Christopherson wrote: > > +static void sgx_reclaim_pages(void) > > +{ > > + struct sgx_epc_page *chunk[SGX_NR_TO_SCAN + 1]; > > The array size should simply be SGX_NR_TO_SCAN. ?The +1 is a remnant > from the previous version that bounded the for-loops with "!chunk[i]" > check instead of "i < j". ?No functional issue, essentially just an > unused variable. Thanks, yep, it is cruft. /Jarkko