From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75F4DC63777 for ; Fri, 27 Nov 2020 01:41:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E0A3D2067D for ; Fri, 27 Nov 2020 01:41:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0A3D2067D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 13CCB6B006E; Thu, 26 Nov 2020 20:41:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0ECA66B0070; Thu, 26 Nov 2020 20:41:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0029C6B0071; Thu, 26 Nov 2020 20:41:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0193.hostedemail.com [216.40.44.193]) by kanga.kvack.org (Postfix) with ESMTP id DF8B96B006E for ; Thu, 26 Nov 2020 20:41:18 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A99801EE6 for ; Fri, 27 Nov 2020 01:41:18 +0000 (UTC) X-FDA: 77528495436.21.baby44_0c1443a27384 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 8FEAE180442CE for ; Fri, 27 Nov 2020 01:41:18 +0000 (UTC) X-HE-Tag: baby44_0c1443a27384 X-Filterd-Recvd-Size: 3808 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Fri, 27 Nov 2020 01:41:17 +0000 (UTC) IronPort-SDR: /5MkKppyEQP8pWUC3SjQlshzJuQkaWuoU1ucl7CLOFF8zd5V/DO+dzjD+Nl/biC7e/eC1T1jvu FMA1v8st1RQQ== X-IronPort-AV: E=McAfee;i="6000,8403,9817"; a="172494862" X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="172494862" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 17:41:15 -0800 IronPort-SDR: Yyph7B1q/WfcSto0rtR4wGqJEzz7SiByO2+Ocxt/7UfQWt6D7TwfkypFa4Y8YdjSbmLwT1YdwH IESZHDTlHlsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="433384924" Received: from allen-box.sh.intel.com (HELO [10.239.159.28]) ([10.239.159.28]) by fmsmga001.fm.intel.com with ESMTP; 26 Nov 2020 17:41:13 -0800 Cc: baolu.lu@linux.intel.com, Tom Murphy , kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [linux-next:master 8183/8750] drivers/iommu/intel/iommu.c:5643:27: warning: variable 'last_pfn' set but not used To: Will Deacon , kernel test robot References: <202011270337.BLAqpwem-lkp@intel.com> <20201126210405.GB19126@willie-the-truck> From: Lu Baolu Message-ID: <470b147d-cba6-220a-834f-73c5fd5793ac@linux.intel.com> Date: Fri, 27 Nov 2020 09:33:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201126210405.GB19126@willie-the-truck> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Will, On 11/27/20 5:04 AM, Will Deacon wrote: > On Fri, Nov 27, 2020 at 03:42:40AM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master >> head: 6147c83fd749d19a0d3ccc2f64d12138ab010b47 >> commit: 2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d [8183/8750] iommu: Handle freelists when using deferred flushing in iommu drivers >> config: ia64-randconfig-r004-20201127 (attached as .config) >> compiler: ia64-linux-gcc (GCC) 9.3.0 >> reproduce (this is a W=1 build): >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d >> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git >> git fetch --no-tags linux-next master >> git checkout 2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d >> # save the attached .config to linux build tree >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> All warnings (new ones prefixed by >>): >> >> drivers/iommu/intel/iommu.c: In function 'intel_iommu_tlb_sync': >>>> drivers/iommu/intel/iommu.c:5643:27: warning: variable 'last_pfn' set but not used [-Wunused-but-set-variable] >> 5643 | unsigned long start_pfn, last_pfn; >> | ^~~~~~~~ > > > Looks like we can just drop the 'last_pfn' variable altogether, since > iommu_flush_iotlb_psi() takes start and size, rather than start and end. > > Baolu -- please can you send a patch on top of for-next/iommu/vt-d? Sure! Best regards, baolu