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 <lkp@xxxxxxxxx> > > 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