Subject: [arm:cex7 10/41] drivers/pci/controller/mobiveil/pcie-mobiveil-host.c:456:20: error: implicit declaration of function 'pci_msi_create_irq_domain'; did you mean 'msi_create_irq_domain'?

From: kbuild test robot <[email-masked]>
Date: Thu, 10 Oct 2019 07:17:48 +0800

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head:   9de8c9294924dc903e79ca03162cbd208a834330
commit: 2729e9ee9e99b04171a1cddddcd3027dd350dbde [10/41] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.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 2729e9ee9e99b04171a1cddddcd3027dd350dbde
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email-masked]>

All errors (new ones prefixed by >>):

   drivers/pci/controller/mobiveil/pcie-mobiveil-host.c: In function 'mobiveil_allocate_msi_domains':
>> drivers/pci/controller/mobiveil/pcie-mobiveil-host.c:456:20: error: implicit declaration of function 'pci_msi_create_irq_domain'; did you mean 'msi_create_irq_domain'? [-Werror=implicit-function-declaration]
     msi->msi_domain = pci_msi_create_irq_domain(fwnode,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
                       msi_create_irq_domain
   drivers/pci/controller/mobiveil/pcie-mobiveil-host.c:456:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     msi->msi_domain = pci_msi_create_irq_domain(fwnode,
                     ^
   cc1: some warnings being treated as errors

vim +456 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c

1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  441  
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  442  static int mobiveil_allocate_msi_domains(struct mobiveil_pcie *pcie)
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  443  {
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  444  	struct device *dev = &pcie->pdev->dev;
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  445  	struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
2729e9ee9e99b0 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c Hou Zhiqiang         2019-08-13  446  	struct mobiveil_msi *msi = &pcie->rp.msi;
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  447  
2729e9ee9e99b0 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c Hou Zhiqiang         2019-08-13  448  	mutex_init(&msi->lock);
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  449  	msi->dev_domain = irq_domain_add_linear(NULL, msi->num_of_vectors,
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  450  						&msi_domain_ops, pcie);
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  451  	if (!msi->dev_domain) {
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  452  		dev_err(dev, "failed to create IRQ domain\n");
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  453  		return -ENOMEM;
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  454  	}
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  455  
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30 @456  	msi->msi_domain = pci_msi_create_irq_domain(fwnode,
e369faf6255df5 drivers/pci/controller/pcie-mobiveil.c               Hou Zhiqiang         2019-07-05  457  						    &mobiveil_msi_domain_info,
e369faf6255df5 drivers/pci/controller/pcie-mobiveil.c               Hou Zhiqiang         2019-07-05  458  						    msi->dev_domain);
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  459  	if (!msi->msi_domain) {
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  460  		dev_err(dev, "failed to create MSI domain\n");
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  461  		irq_domain_remove(msi->dev_domain);
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  462  		return -ENOMEM;
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  463  	}
e369faf6255df5 drivers/pci/controller/pcie-mobiveil.c               Hou Zhiqiang         2019-07-05  464  
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  465  	return 0;
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  466  }
1e913e58335fbc drivers/pci/host/pcie-mobiveil.c                     Subrahmanya Lingappa 2018-05-30  467  

:::::: The code at line 456 was first introduced by commit
:::::: 1e913e58335fbc7a8da9662746dd54d6091488b8 PCI: mobiveil: Add MSI support

:::::: TO: Subrahmanya Lingappa <[email-masked]>
:::::: CC: Bjorn Helgaas <[email-masked]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel