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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, 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 51D98C63777 for ; Thu, 26 Nov 2020 21:04:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BEDF721D91 for ; Thu, 26 Nov 2020 21:04:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="J80UcdrC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BEDF721D91 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 59E4B6B0070; Thu, 26 Nov 2020 16:04:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 573BF6B0071; Thu, 26 Nov 2020 16:04:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 461F66B0072; Thu, 26 Nov 2020 16:04:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 2B3FC6B0070 for ; Thu, 26 Nov 2020 16:04:12 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id D309C3642 for ; Thu, 26 Nov 2020 21:04:11 +0000 (UTC) X-FDA: 77527797102.04.yard69_2713bef27382 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id B684380104EC for ; Thu, 26 Nov 2020 21:04:11 +0000 (UTC) X-HE-Tag: yard69_2713bef27382 X-Filterd-Recvd-Size: 3360 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf20.hostedemail.com (Postfix) with ESMTP for ; Thu, 26 Nov 2020 21:04:11 +0000 (UTC) Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B58521D7F; Thu, 26 Nov 2020 21:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606424650; bh=MOBRaynQVJDbgqTH7g2UI+eDzn/yfUKucOoJ7OP5Os4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J80UcdrC8NJPehmNyhcu89qvlYOV5MtcGf3fQyK8ng0SBeYhDMR9No99qPHmQZEj6 jbQ5I/ECYuz1F6Yx+M+A2Hbp5p0INDguvf8IuNDiHrFpQGrkd3pDQMOOeIBMM1bT5K TadWqivTv1LVgTiHHulD60pKQ6H5y0dEkfxTe/qs= Date: Thu, 26 Nov 2020 21:04:06 +0000 From: Will Deacon To: kernel test robot Cc: Tom Murphy , kbuild-all@lists.01.org, Linux Memory Management List , Lu Baolu Subject: Re: [linux-next:master 8183/8750] drivers/iommu/intel/iommu.c:5643:27: warning: variable 'last_pfn' set but not used Message-ID: <20201126210405.GB19126@willie-the-truck> References: <202011270337.BLAqpwem-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202011270337.BLAqpwem-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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: 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? Cheers, Will