[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202407170032.WTPexEVV-lkp@intel.com>
Date: Wed, 17 Jul 2024 00:47:59 +0800
From: kernel test robot <lkp@...el.com>
To: Manivannan Sadhasivam via B4 Relay <devnull+manivannan.sadhasivam.linaro.org@...nel.org>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Rob Herring <robh@...nel.org>, Bjorn Helgaas <helgaas@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-pci@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Subject: Re: [PATCH 06/14] PCI: endpoint: Assign PCI domain number for
endpoint controllers
Hi Manivannan,
kernel test robot noticed the following build errors:
[auto build test ERROR on 91e3b24eb7d297d9d99030800ed96944b8652eaf]
url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam-via-B4-Relay/PCI-qcom-ep-Drop-the-redundant-masking-of-global-IRQ-events/20240716-014703
base: 91e3b24eb7d297d9d99030800ed96944b8652eaf
patch link: https://lore.kernel.org/r/20240715-pci-qcom-hotplug-v1-6-5f3765cc873a%40linaro.org
patch subject: [PATCH 06/14] PCI: endpoint: Assign PCI domain number for endpoint controllers
config: i386-randconfig-011-20240716 (https://download.01.org/0day-ci/archive/20240717/202407170032.WTPexEVV-lkp@intel.com/config)
compiler: gcc-8 (Ubuntu 8.4.0-3ubuntu2) 8.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240717/202407170032.WTPexEVV-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407170032.WTPexEVV-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/pci/endpoint/pci-epc-core.c: In function '__pci_epc_create':
>> drivers/pci/endpoint/pci-epc-core.c:902:19: error: implicit declaration of function 'pci_bus_find_domain_nr'; did you mean 'pci_bus_find_capability'? [-Werror=implicit-function-declaration]
epc->domain_nr = pci_bus_find_domain_nr(NULL, dev);
^~~~~~~~~~~~~~~~~~~~~~
pci_bus_find_capability
cc1: some warnings being treated as errors
vim +902 drivers/pci/endpoint/pci-epc-core.c
866
867 /**
868 * __pci_epc_create() - create a new endpoint controller (EPC) device
869 * @dev: device that is creating the new EPC
870 * @ops: function pointers for performing EPC operations
871 * @owner: the owner of the module that creates the EPC device
872 *
873 * Invoke to create a new EPC device and add it to pci_epc class.
874 */
875 struct pci_epc *
876 __pci_epc_create(struct device *dev, const struct pci_epc_ops *ops,
877 struct module *owner)
878 {
879 int ret;
880 struct pci_epc *epc;
881
882 if (WARN_ON(!dev)) {
883 ret = -EINVAL;
884 goto err_ret;
885 }
886
887 epc = kzalloc(sizeof(*epc), GFP_KERNEL);
888 if (!epc) {
889 ret = -ENOMEM;
890 goto err_ret;
891 }
892
893 mutex_init(&epc->lock);
894 mutex_init(&epc->list_lock);
895 INIT_LIST_HEAD(&epc->pci_epf);
896
897 device_initialize(&epc->dev);
898 epc->dev.class = &pci_epc_class;
899 epc->dev.parent = dev;
900 epc->dev.release = pci_epc_release;
901 epc->ops = ops;
> 902 epc->domain_nr = pci_bus_find_domain_nr(NULL, dev);
903
904 ret = dev_set_name(&epc->dev, "%s", dev_name(dev));
905 if (ret)
906 goto put_dev;
907
908 ret = device_add(&epc->dev);
909 if (ret)
910 goto put_dev;
911
912 epc->group = pci_ep_cfs_add_epc_group(dev_name(dev));
913
914 return epc;
915
916 put_dev:
917 put_device(&epc->dev);
918
919 err_ret:
920 return ERR_PTR(ret);
921 }
922 EXPORT_SYMBOL_GPL(__pci_epc_create);
923
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists