Content-Type: multipart/mixed; boundary="===============5198781948249039341==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 04/17] PCI: aardvark: Fix reading MSI interrupt number Date: Wed, 08 Dec 2021 21:38:04 +0800 Message-ID: <202112082134.fNH8OE60-lkp@intel.com> In-Reply-To: <20211208061851.31867-5-kabel@kernel.org> List-Id: --===============5198781948249039341== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Marek, I love your patch! Perhaps something to improve: [auto build test WARNING on helgaas-pci/next] [also build test WARNING on next-20211208] [cannot apply to v5.16-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Marek-Beh-n/PCI-aardvark-c= ontroller-fixes-BATCH-4/20211208-141958 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next config: arm64-randconfig-r022-20211207 (https://download.01.org/0day-ci/arc= hive/20211208/202112082134.fNH8OE60-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1c= b1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/1d0822699fe4ce28186773b91= 86410166165fd0f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Marek-Beh-n/PCI-aardvark-controlle= r-fixes-BATCH-4/20211208-141958 git checkout 1d0822699fe4ce28186773b9186410166165fd0f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash drivers/pci/controller/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/pci/controller/pci-aardvark.c:1409:70: warning: format specifies= type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int')= [-Wformat] dev_err_ratelimited(&pcie->pdev->dev, "unexpecte= d MSI 0x%04hx\n", msi_idx); = ~~~~~ ^~~~~~~ = %04x include/linux/dev_printk.h:218:45: note: expanded from macro 'dev_err_ra= telimited' dev_level_ratelimited(dev_err, dev, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dev_printk.h:208:25: note: expanded from macro 'dev_level_= ratelimited' dev_level(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err' dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##_= _VA_ARGS__) ~~~ ^= ~~~~~~~~~~ include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk= _index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ 1 warning generated. vim +1409 drivers/pci/controller/pci-aardvark.c 1393 = 1394 static void advk_pcie_handle_msi(struct advk_pcie *pcie) 1395 { 1396 u32 msi_val, msi_mask, msi_status, msi_idx; 1397 = 1398 msi_mask =3D advk_readl(pcie, PCIE_MSI_MASK_REG); 1399 msi_val =3D advk_readl(pcie, PCIE_MSI_STATUS_REG); 1400 msi_status =3D msi_val & ((~msi_mask) & PCIE_MSI_ALL_MASK); 1401 = 1402 for (msi_idx =3D 0; msi_idx < MSI_IRQ_NUM; msi_idx++) { 1403 if (!(BIT(msi_idx) & msi_status)) 1404 continue; 1405 = 1406 advk_writel(pcie, BIT(msi_idx), PCIE_MSI_STATUS_REG); 1407 = 1408 if (generic_handle_domain_irq(pcie->msi_inner_domain, msi_idx) =3D= =3D -EINVAL) > 1409 dev_err_ratelimited(&pcie->pdev->dev, "unexpected MSI 0x%04hx\n",= msi_idx); 1410 } 1411 = 1412 advk_writel(pcie, PCIE_ISR0_MSI_INT_PENDING, 1413 PCIE_ISR0_REG); 1414 } 1415 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5198781948249039341==--