* [frank-w-bpi-r2-4.14:5.12-hnat 20/68] drivers/pci/probe.c:928:57: error: no member named 'msi_domain' in 'struct device'; did you mean 'pm_domain'?
@ 2021-03-28 21:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-28 21:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5239 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.12-hnat
head: d60ed77c6c2f36b45e7c838ba9af3a9c935b6647
commit: 17a9a3a8ab21313dabe13c7d5b1a589d8dac4c5c [20/68] PCI/MSI: Let PCI host bridges declare their reliance on MSI domains
config: arm-randconfig-r026-20210328 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 821547cabb5819ed42245376a9afcd11cdee5ddd)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/frank-w/BPI-R2-4.14/commit/17a9a3a8ab21313dabe13c7d5b1a589d8dac4c5c
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.12-hnat
git checkout 17a9a3a8ab21313dabe13c7d5b1a589d8dac4c5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/pci/probe.c:928:57: error: no member named 'msi_domain' in 'struct device'; did you mean 'pm_domain'?
if (bridge->no_msi || (bridge->msi_domain && !bus->dev.msi_domain))
^~~~~~~~~~
pm_domain
include/linux/device.h:483:24: note: 'pm_domain' declared here
struct dev_pm_domain *pm_domain;
^
1 error generated.
vim +928 drivers/pci/probe.c
903
904 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr);
905 if (b) {
906 /* Ignore it if we already got here via a different bridge */
907 dev_dbg(&b->dev, "bus already known\n");
908 err = -EEXIST;
909 goto free;
910 }
911
912 dev_set_name(&bridge->dev, "pci%04x:%02x", pci_domain_nr(bus),
913 bridge->busnr);
914
915 err = pcibios_root_bridge_prepare(bridge);
916 if (err)
917 goto free;
918
919 err = device_add(&bridge->dev);
920 if (err) {
921 put_device(&bridge->dev);
922 goto free;
923 }
924 bus->bridge = get_device(&bridge->dev);
925 device_enable_async_suspend(bus->bridge);
926 pci_set_bus_of_node(bus);
927 pci_set_bus_msi_domain(bus);
> 928 if (bridge->no_msi || (bridge->msi_domain && !bus->dev.msi_domain))
929 bus->bus_flags |= PCI_BUS_FLAGS_NO_MSI;
930
931 if (!parent)
932 set_dev_node(bus->bridge, pcibus_to_node(bus));
933
934 bus->dev.class = &pcibus_class;
935 bus->dev.parent = bus->bridge;
936
937 dev_set_name(&bus->dev, "%04x:%02x", pci_domain_nr(bus), bus->number);
938 name = dev_name(&bus->dev);
939
940 err = device_register(&bus->dev);
941 if (err)
942 goto unregister;
943
944 pcibios_add_bus(bus);
945
946 if (bus->ops->add_bus) {
947 err = bus->ops->add_bus(bus);
948 if (WARN_ON(err < 0))
949 dev_err(&bus->dev, "failed to add bus: %d\n", err);
950 }
951
952 /* Create legacy_io and legacy_mem files for this bus */
953 pci_create_legacy_files(bus);
954
955 if (parent)
956 dev_info(parent, "PCI host bridge to bus %s\n", name);
957 else
958 pr_info("PCI host bridge to bus %s\n", name);
959
960 if (nr_node_ids > 1 && pcibus_to_node(bus) == NUMA_NO_NODE)
961 dev_warn(&bus->dev, "Unknown NUMA node; performance will be reduced\n");
962
963 /* Add initial resources to the bus */
964 resource_list_for_each_entry_safe(window, n, &resources) {
965 list_move_tail(&window->node, &bridge->windows);
966 offset = window->offset;
967 res = window->res;
968
969 if (res->flags & IORESOURCE_BUS)
970 pci_bus_insert_busn_res(bus, bus->number, res->end);
971 else
972 pci_bus_add_resource(bus, res, 0);
973
974 if (offset) {
975 if (resource_type(res) == IORESOURCE_IO)
976 fmt = " (bus address [%#06llx-%#06llx])";
977 else
978 fmt = " (bus address [%#010llx-%#010llx])";
979
980 snprintf(addr, sizeof(addr), fmt,
981 (unsigned long long)(res->start - offset),
982 (unsigned long long)(res->end - offset));
983 } else
984 addr[0] = '\0';
985
986 dev_info(&bus->dev, "root bus resource %pR%s\n", res, addr);
987 }
988
989 down_write(&pci_bus_sem);
990 list_add_tail(&bus->node, &pci_root_buses);
991 up_write(&pci_bus_sem);
992
993 return 0;
994
995 unregister:
996 put_device(&bridge->dev);
997 device_del(&bridge->dev);
998
999 free:
1000 kfree(bus);
1001 return err;
1002 }
1003
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32350 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-28 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 21:59 [frank-w-bpi-r2-4.14:5.12-hnat 20/68] drivers/pci/probe.c:928:57: error: no member named 'msi_domain' in 'struct device'; did you mean 'pm_domain'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.