Content-Type: multipart/mixed; boundary="===============7159424860701698360==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH] PCI, kdump: Clear bus master bit upon shutdown in kdump kernel Date: Fri, 27 Dec 2019 19:11:26 +0800 Message-ID: <201912271809.xKEh6YbO%lkp@intel.com> In-Reply-To: <20191225192118.283637-1-kasong@redhat.com> List-Id: --===============7159424860701698360== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kairui, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on pci/next] [also build test WARNING on linux/master linus/master v5.5-rc3 next-2019122= 0] [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system. BTW, we also suggest to use '--base' option to specify = the base tree in git format-patch, please see https://stackoverflow.com/a/37406= 982] url: https://github.com/0day-ci/linux/commits/Kairui-Song/PCI-kdump-Clea= r-bus-master-bit-upon-shutdown-in-kdump-kernel/20191226-071855 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next reproduce: # apt-get install sparse # sparse version: v0.6.1-129-g341daf20-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/pci/quirks.c:210:36: sparse: sparse: incorrect type in assignmen= t (different base types) >> drivers/pci/quirks.c:210:36: sparse: expected restricted pci_power_t = [usertype] current_state >> drivers/pci/quirks.c:210:36: sparse: got int drivers/pci/quirks.c:2241:57: sparse: sparse: restricted pci_power_t deg= rades to integer vim +210 drivers/pci/quirks.c 195 = 196 /* 197 * Read the device state even if it's not enabled. The device could = be 198 * activated by previous crashed kernel, this will read and correct = the 199 * cached state. 200 */ 201 static void quirk_read_pm_state_in_kdump(struct pci_dev *dev) 202 { 203 u16 pmcsr; 204 = 205 if (!is_kdump_kernel()) 206 return; 207 = 208 if (dev->pm_cap) { 209 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); > 210 dev->current_state =3D (pmcsr & PCI_PM_CTRL_STATE_MASK); 211 } 212 } 213 DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, quirk_read_pm_state_= in_kdump); 214 = --- 0-DAY kernel test infrastructure Open Source Technology Cen= ter https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corpor= ation --===============7159424860701698360==--