Hi Matthew, kernel test robot noticed the following build errors: [auto build test ERROR on pci/next] [also build test ERROR on pci/for-linus linus/master v6.16-rc6 next-20250717] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-W-Carlis/PCI-Add-CONFIG_PCI_NOSPEED_QUIRK-to-remove-pcie_failed_link_retrain/20250717-030438 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20250716190206.15269-2-mattc%40purestorage.com patch subject: [PATCH 1/1] PCI: Add CONFIG_PCI_NOSPEED_QUIRK to remove pcie_failed_link_retrain config: sparc-randconfig-002-20250717 (https://download.01.org/0day-ci/archive/20250718/202507180125.48CXWNxm-lkp@xxxxxxxxx/config) compiler: sparc-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250718/202507180125.48CXWNxm-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202507180125.48CXWNxm-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): drivers/pci/probe.c: In function 'pci_device_add': >> drivers/pci/probe.c:2688:2: error: implicit declaration of function 'pcie_failed_link_retrain'; did you mean 'pci_enable_link_state'? [-Werror=implicit-function-declaration] pcie_failed_link_retrain(dev); ^~~~~~~~~~~~~~~~~~~~~~~~ pci_enable_link_state cc1: some warnings being treated as errors -- drivers/pci/pci.c: In function 'pci_dev_wait': >> drivers/pci/pci.c:1325:9: error: implicit declaration of function 'pcie_failed_link_retrain'; did you mean 'pci_enable_link_state'? [-Werror=implicit-function-declaration] if (pcie_failed_link_retrain(bridge) == 0) { ^~~~~~~~~~~~~~~~~~~~~~~~ pci_enable_link_state cc1: some warnings being treated as errors vim +2688 drivers/pci/probe.c 44aa0c657e3e45 Marc Zyngier 2015-07-28 2670 96bde06a2df1b3 Sam Ravnborg 2007-03-26 2671 void pci_device_add(struct pci_dev *dev, struct pci_bus *bus) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2672 { 4f535093cf8f6d Yinghai Lu 2013-01-21 2673 int ret; 4f535093cf8f6d Yinghai Lu 2013-01-21 2674 6cd33649fa83d9 Bjorn Helgaas 2014-08-27 2675 pci_configure_device(dev); 6cd33649fa83d9 Bjorn Helgaas 2014-08-27 2676 cdb9b9f730eac4 Paul Mackerras 2005-09-06 2677 device_initialize(&dev->dev); cdb9b9f730eac4 Paul Mackerras 2005-09-06 2678 dev->dev.release = pci_release_dev; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2679 7629d19a4df922 Yinghai Lu 2013-01-21 2680 set_dev_node(&dev->dev, pcibus_to_node(bus)); cdb9b9f730eac4 Paul Mackerras 2005-09-06 2681 dev->dev.dma_mask = &dev->dma_mask; 4d57cdfacaa1c2 FUJITA Tomonori 2008-02-04 2682 dev->dev.dma_parms = &dev->dma_parms; cdb9b9f730eac4 Paul Mackerras 2005-09-06 2683 dev->dev.coherent_dma_mask = 0xffffffffull; ^1da177e4c3f41 Linus Torvalds 2005-04-16 2684 b0da3498c587c2 Christoph Hellwig 2018-10-09 2685 dma_set_max_seg_size(&dev->dev, 65536); a6f44cf9f5cc60 Christoph Hellwig 2018-10-09 2686 dma_set_seg_boundary(&dev->dev, 0xffffffff); 4d57cdfacaa1c2 FUJITA Tomonori 2008-02-04 2687 a89c82249c3763 Maciej W. Rozycki 2023-06-11 @2688 pcie_failed_link_retrain(dev); a89c82249c3763 Maciej W. Rozycki 2023-06-11 2689 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2690 /* Fix up broken headers */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 2691 pci_fixup_device(pci_fixup_header, dev); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2692 2069ecfbe14ebd Yinghai Lu 2012-02-15 2693 pci_reassigndev_resource_alignment(dev); 2069ecfbe14ebd Yinghai Lu 2012-02-15 2694 4b77b0a2ba27d6 Rafael J. Wysocki 2009-09-09 2695 dev->state_saved = false; 4b77b0a2ba27d6 Rafael J. Wysocki 2009-09-09 2696 201de56eb22f1f Zhao, Yu 2008-10-13 2697 pci_init_capabilities(dev); eb9d0fe40e313c Rafael J. Wysocki 2008-07-07 2698 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2699 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 2700 * Add the device to our list of discovered devices ^1da177e4c3f41 Linus Torvalds 2005-04-16 2701 * and the bus list for fixup functions, etc. ^1da177e4c3f41 Linus Torvalds 2005-04-16 2702 */ d71374dafbba7e Zhang Yanmin 2006-06-02 2703 down_write(&pci_bus_sem); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2704 list_add_tail(&dev->bus_list, &bus->devices); d71374dafbba7e Zhang Yanmin 2006-06-02 2705 up_write(&pci_bus_sem); 4f535093cf8f6d Yinghai Lu 2013-01-21 2706 06dc660e6eb881 Oliver O'Halloran 2021-09-14 2707 ret = pcibios_device_add(dev); 4f535093cf8f6d Yinghai Lu 2013-01-21 2708 WARN_ON(ret < 0); 4f535093cf8f6d Yinghai Lu 2013-01-21 2709 3e466e2d3a04c7 Bjorn Helgaas 2017-11-30 2710 /* Set up MSI IRQ domain */ 44aa0c657e3e45 Marc Zyngier 2015-07-28 2711 pci_set_msi_domain(dev); 44aa0c657e3e45 Marc Zyngier 2015-07-28 2712 4f535093cf8f6d Yinghai Lu 2013-01-21 2713 /* Notifier could use PCI capabilities */ 4f535093cf8f6d Yinghai Lu 2013-01-21 2714 ret = device_add(&dev->dev); 4f535093cf8f6d Yinghai Lu 2013-01-21 2715 WARN_ON(ret < 0); 4e893545ef8712 Mariusz Tkaczyk 2024-09-04 2716 4e893545ef8712 Mariusz Tkaczyk 2024-09-04 2717 pci_npem_create(dev); 2311ab1820fed2 Alistair Francis 2025-03-06 2718 2311ab1820fed2 Alistair Francis 2025-03-06 2719 pci_doe_sysfs_init(dev); cdb9b9f730eac4 Paul Mackerras 2005-09-06 2720 } cdb9b9f730eac4 Paul Mackerras 2005-09-06 2721 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki