* [arm-platforms:irq/kill_msi_controller 3/13] drivers/pci/controller/pcie-xilinx.c:264:11: warning: excess elements in struct initializer
@ 2021-02-22 9:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-22 9:43 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 4880 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/kill_msi_controller
head: 52653dbb8a3ebb73cfb4bb29778d1ecaaf59f0bd
commit: 4ea70d0a64fe3080e4b858941c714fc7d457a76e [3/13] PCI: xilinx: Convert to MSI domains
config: i386-randconfig-a015-20210222 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=4ea70d0a64fe3080e4b858941c714fc7d457a76e
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/kill_msi_controller
git checkout 4ea70d0a64fe3080e4b858941c714fc7d457a76e
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/pci/controller/pcie-xilinx.c:263:15: error: variable 'xilinx_msi_info' has initializer but incomplete type
263 | static struct msi_domain_info xilinx_msi_info = {
| ^~~~~~~~~~~~~~~
drivers/pci/controller/pcie-xilinx.c:264:3: error: 'struct msi_domain_info' has no member named 'flags'
264 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
| ^~~~~
drivers/pci/controller/pcie-xilinx.c:264:12: error: 'MSI_FLAG_USE_DEF_DOM_OPS' undeclared here (not in a function)
264 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/pcie-xilinx.c:264:39: error: 'MSI_FLAG_USE_DEF_CHIP_OPS' undeclared here (not in a function)
264 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/pcie-xilinx.c:264:11: warning: excess elements in struct initializer
264 | .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
| ^
drivers/pci/controller/pcie-xilinx.c:264:11: note: (near initialization for 'xilinx_msi_info')
drivers/pci/controller/pcie-xilinx.c:265:3: error: 'struct msi_domain_info' has no member named 'chip'
265 | .chip = &xilinx_msi_top_chip,
| ^~~~
drivers/pci/controller/pcie-xilinx.c:265:10: warning: excess elements in struct initializer
265 | .chip = &xilinx_msi_top_chip,
| ^
drivers/pci/controller/pcie-xilinx.c:265:10: note: (near initialization for 'xilinx_msi_info')
drivers/pci/controller/pcie-xilinx.c: In function 'xilinx_allocate_msi_domains':
drivers/pci/controller/pcie-xilinx.c:281:21: error: implicit declaration of function 'pci_msi_create_irq_domain'; did you mean 'pci_msi_get_device_domain'? [-Werror=implicit-function-declaration]
281 | pcie->msi_domain = pci_msi_create_irq_domain(fwnode, &xilinx_msi_info, parent);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| pci_msi_get_device_domain
>> drivers/pci/controller/pcie-xilinx.c:281:19: warning: assignment to 'struct irq_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
281 | pcie->msi_domain = pci_msi_create_irq_domain(fwnode, &xilinx_msi_info, parent);
| ^
drivers/pci/controller/pcie-xilinx.c: At top level:
drivers/pci/controller/pcie-xilinx.c:263:31: error: storage size of 'xilinx_msi_info' isn't known
263 | static struct msi_domain_info xilinx_msi_info = {
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +264 drivers/pci/controller/pcie-xilinx.c
262
263 static struct msi_domain_info xilinx_msi_info = {
> 264 .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
265 .chip = &xilinx_msi_top_chip,
266 };
267
268 static int xilinx_allocate_msi_domains(struct xilinx_pcie_port *pcie)
269 {
270 struct fwnode_handle *fwnode = dev_fwnode(pcie->dev);
271 struct irq_domain *parent;
272
273 parent = irq_domain_create_linear(fwnode, XILINX_NUM_MSI_IRQS,
274 &xilinx_msi_domain_ops, pcie);
275 if (!parent) {
276 dev_err(pcie->dev, "failed to create IRQ domain\n");
277 return -ENOMEM;
278 }
279 irq_domain_update_bus_token(parent, DOMAIN_BUS_NEXUS);
280
> 281 pcie->msi_domain = pci_msi_create_irq_domain(fwnode, &xilinx_msi_info, parent);
282 if (!pcie->msi_domain) {
283 dev_err(pcie->dev, "failed to create MSI domain\n");
284 irq_domain_remove(parent);
285 return -ENOMEM;
286 }
287
288 return 0;
289 }
290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35861 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-22 9:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 9:43 [arm-platforms:irq/kill_msi_controller 3/13] drivers/pci/controller/pcie-xilinx.c:264:11: warning: excess elements in struct initializer kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).