Hi "Saheed,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on helgaas-pci/next]
[also build test ERROR on v5.15 next-20211106]
[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/Saheed-O-Bolarinwa/Remove-unnces...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/d60048f94473e70fdbbe82d7e4c3df8ab...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Saheed-O-Bolarinwa/Remove-unncessary-linked-list-from-aspm-c/20211107-015558
git checkout d60048f94473e70fdbbe82d7e4c3df8ab7431416
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the
linux-review/Saheed-O-Bolarinwa/Remove-unncessary-linked-list-from-aspm-c/20211107-015558
HEAD 1363f09cfe46f62adad834d4ea2eb67fb29ab60a builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/pci/pcie/aspm.c: In function 'alloc_pcie_link_state':
> drivers/pci/pcie/aspm.c:886:30: error: 'ulink_bridge'
undeclared (first use in this function); did you mean 'uplink_bridge'?
886 | link->root = ulink_bridge->root;
| ^~~~~~~~~~~~
| uplink_bridge
drivers/pci/pcie/aspm.c:886:30: note: each undeclared identifier is reported only once
for each function it appears in
vim +886 drivers/pci/pcie/aspm.c
853
854 static struct pcie_link_state *alloc_pcie_link_state(struct pci_dev *pdev)
855 {
856 struct pcie_link_state *link;
857
858 link = kzalloc(sizeof(*link), GFP_KERNEL);
859 if (!link)
860 return NULL;
861
862 INIT_LIST_HEAD(&link->sibling);
863 link->pdev = pdev;
864 link->downstream = pci_function_0(pdev->subordinate);
865
866 /*
867 * Root Ports and PCI/PCI-X to PCIe Bridges are roots of PCIe
868 * hierarchies. Note that some PCIe host implementations omit
869 * the root ports entirely, in which case a downstream port on
870 * a switch may become the root of the link state chain for all
871 * its subordinate endpoints.
872 */
873 if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT ||
874 pci_pcie_type(pdev) == PCI_EXP_TYPE_PCIE_BRIDGE ||
875 !pdev->bus->parent->self) {
876 link->root = link;
877 } else {
878 struct pcie_link_state *uplink_bridge;
879
880 uplink_bridge = pcie_upstream_link(pdev);
881 if (!uplink_bridge) {
882 kfree(link);
883 return NULL;
884 }
885
886 link->root = ulink_bridge->root;
887 }
888
889 list_add(&link->sibling, &link_list);
890 pdev->link_state = link;
891 return link;
892 }
893
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org