tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git for-linus head: 39d14168af01c696cfcab4770e2b9a56d6e73679 commit: 39767ee127c680aed6d94bbcd429bb5242ef4f1f [1/2] PCI: Add pci_reset_function_locked() config: i386-randconfig-x019-201731 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 39767ee127c680aed6d94bbcd429bb5242ef4f1f # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/pci/pci.c: In function 'pci_reset_function_locked': >> drivers/pci/pci.c:4283:7: error: implicit declaration of function 'pci_dev_reset' [-Werror=implicit-function-declaration] rc = pci_dev_reset(dev, 1); ^~~~~~~~~~~~~ >> drivers/pci/pci.c:4289:7: error: implicit declaration of function '__pci_dev_reset' [-Werror=implicit-function-declaration] rc = __pci_dev_reset(dev, 0); ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/pci_dev_reset +4283 drivers/pci/pci.c 4261 4262 /** 4263 * pci_reset_function_locked - quiesce and reset a PCI device function 4264 * @dev: PCI device to reset 4265 * 4266 * Some devices allow an individual function to be reset without affecting 4267 * other functions in the same device. The PCI device must be responsive 4268 * to PCI config space in order to use this function. 4269 * 4270 * This function does not just reset the PCI portion of a device, but 4271 * clears all the state associated with the device. This function differs 4272 * from __pci_reset_function() in that it saves and restores device state 4273 * over the reset. It also differs from pci_reset_function() in that it 4274 * requires the PCI device lock to be held. 4275 * 4276 * Returns 0 if the device function was successfully reset or negative if the 4277 * device doesn't support resetting a single function. 4278 */ 4279 int pci_reset_function_locked(struct pci_dev *dev) 4280 { 4281 int rc; 4282 > 4283 rc = pci_dev_reset(dev, 1); 4284 if (rc) 4285 return rc; 4286 4287 pci_dev_save_and_disable(dev); 4288 > 4289 rc = __pci_dev_reset(dev, 0); 4290 4291 pci_dev_restore(dev); 4292 4293 return rc; 4294 } 4295 EXPORT_SYMBOL_GPL(pci_reset_function_locked); 4296 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip