[pci:next 17/20] drivers/pci/host/pcie-mediatek.c:549:15: error: variable 'mtk_msi_domain_info' has initializer but incomplete type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
head:   f8d3ac43d8cd4cfba337a50794c26c7ca89d86ac
commit: cd5b9e2662eab7881e20777a026151da858c75d3 [17/20] Merge branch 'lorenzo/pci/mediatek'
config: parisc-allmodconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cd5b9e2662eab7881e20777a026151da858c75d3
        # save the attached .config to linux build tree
        make.cross ARCH=parisc 

All errors (new ones prefixed by >>):

>> drivers/pci/host/pcie-mediatek.c:549:15: error: variable 'mtk_msi_domain_info' has initializer but incomplete type
    static struct msi_domain_info mtk_msi_domain_info = {
                  ^~~~~~~~~~~~~~~
>> drivers/pci/host/pcie-mediatek.c:550:3: error: 'struct msi_domain_info' has no member named 'flags'
     .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
      ^~~~~
>> drivers/pci/host/pcie-mediatek.c:550:12: error: 'MSI_FLAG_USE_DEF_DOM_OPS' undeclared here (not in a function); did you mean 'SIMPLE_DEV_PM_OPS'?
     .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
               ^~~~~~~~~~~~~~~~~~~~~~~~
               SIMPLE_DEV_PM_OPS
>> drivers/pci/host/pcie-mediatek.c:550:39: error: 'MSI_FLAG_USE_DEF_CHIP_OPS' undeclared here (not in a function); did you mean 'MSI_FLAG_USE_DEF_DOM_OPS'?
     .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
                                          MSI_FLAG_USE_DEF_DOM_OPS
>> drivers/pci/host/pcie-mediatek.c:551:6: error: 'MSI_FLAG_PCI_MSIX' undeclared here (not in a function); did you mean 'CONFIG_PCI_MSI'?
         MSI_FLAG_PCI_MSIX),
         ^~~~~~~~~~~~~~~~~
         CONFIG_PCI_MSI
   drivers/pci/host/pcie-mediatek.c:550:11: warning: excess elements in struct initializer
     .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
              ^
   drivers/pci/host/pcie-mediatek.c:550:11: note: (near initialization for 'mtk_msi_domain_info')
>> drivers/pci/host/pcie-mediatek.c:552:3: error: 'struct msi_domain_info' has no member named 'chip'
     .chip = &mtk_msi_irq_chip,
      ^~~~
   drivers/pci/host/pcie-mediatek.c:552:10: warning: excess elements in struct initializer
     .chip = &mtk_msi_irq_chip,
             ^
   drivers/pci/host/pcie-mediatek.c:552:10: note: (near initialization for 'mtk_msi_domain_info')
   drivers/pci/host/pcie-mediatek.c: In function 'mtk_pcie_allocate_msi_domains':
>> drivers/pci/host/pcie-mediatek.c:568:21: error: implicit declaration of function 'pci_msi_create_irq_domain'; did you mean 'pci_msi_get_device_domain'? [-Werror=implicit-function-declaration]
     port->msi_domain = pci_msi_create_irq_domain(fwnode, &mtk_msi_domain_info,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
                        pci_msi_get_device_domain
   drivers/pci/host/pcie-mediatek.c:568:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     port->msi_domain = pci_msi_create_irq_domain(fwnode, &mtk_msi_domain_info,
                      ^
   drivers/pci/host/pcie-mediatek.c: At top level:
>> drivers/pci/host/pcie-mediatek.c:549:31: error: storage size of 'mtk_msi_domain_info' isn't known
    static struct msi_domain_info mtk_msi_domain_info = {
                                  ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/mtk_msi_domain_info +549 drivers/pci/host/pcie-mediatek.c

43e6409d Honghui Zhang 2017-08-14  548  
734aeaa3 Honghui Zhang 2018-05-04 @549  static struct msi_domain_info mtk_msi_domain_info = {
734aeaa3 Honghui Zhang 2018-05-04 @550  	.flags	= (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
734aeaa3 Honghui Zhang 2018-05-04 @551  		   MSI_FLAG_PCI_MSIX),
734aeaa3 Honghui Zhang 2018-05-04 @552  	.chip	= &mtk_msi_irq_chip,
734aeaa3 Honghui Zhang 2018-05-04  553  };
734aeaa3 Honghui Zhang 2018-05-04  554  
734aeaa3 Honghui Zhang 2018-05-04  555  static int mtk_pcie_allocate_msi_domains(struct mtk_pcie_port *port)
43e6409d Honghui Zhang 2017-08-14  556  {
734aeaa3 Honghui Zhang 2018-05-04  557  	struct fwnode_handle *fwnode = of_node_to_fwnode(port->pcie->dev->of_node);
43e6409d Honghui Zhang 2017-08-14  558  
734aeaa3 Honghui Zhang 2018-05-04  559  	mutex_init(&port->lock);
734aeaa3 Honghui Zhang 2018-05-04  560  
734aeaa3 Honghui Zhang 2018-05-04  561  	port->inner_domain = irq_domain_create_linear(fwnode, MTK_MSI_IRQS_NUM,
734aeaa3 Honghui Zhang 2018-05-04  562  						      &msi_domain_ops, port);
734aeaa3 Honghui Zhang 2018-05-04  563  	if (!port->inner_domain) {
734aeaa3 Honghui Zhang 2018-05-04  564  		dev_err(port->pcie->dev, "failed to create IRQ domain\n");
734aeaa3 Honghui Zhang 2018-05-04  565  		return -ENOMEM;
43e6409d Honghui Zhang 2017-08-14  566  	}
43e6409d Honghui Zhang 2017-08-14  567  
734aeaa3 Honghui Zhang 2018-05-04 @568  	port->msi_domain = pci_msi_create_irq_domain(fwnode, &mtk_msi_domain_info,
734aeaa3 Honghui Zhang 2018-05-04  569  						     port->inner_domain);
734aeaa3 Honghui Zhang 2018-05-04  570  	if (!port->msi_domain) {
734aeaa3 Honghui Zhang 2018-05-04  571  		dev_err(port->pcie->dev, "failed to create MSI domain\n");
734aeaa3 Honghui Zhang 2018-05-04  572  		irq_domain_remove(port->inner_domain);
734aeaa3 Honghui Zhang 2018-05-04  573  		return -ENOMEM;
734aeaa3 Honghui Zhang 2018-05-04  574  	}
734aeaa3 Honghui Zhang 2018-05-04  575  
734aeaa3 Honghui Zhang 2018-05-04  576  	return 0;
734aeaa3 Honghui Zhang 2018-05-04  577  }
43e6409d Honghui Zhang 2017-08-14  578  

:::::: The code at line 549 was first introduced by commit
:::::: 734aeaa3717ef751b16e7101143cbf8d8692dde6 PCI: mediatek: Implement chained IRQ handling setup

:::::: TO: Honghui Zhang <honghui.zhang@xxxxxxxxxxxx>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux