[pci:pci/host-v3-semi 2/2] drivers/pci/host/pci-v3-semi.c:702:6: error: implicit declaration of function 'of_pci_dma_range_parser_init'

[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 pci/host-v3-semi
head:   b455e3a3ec871f584a9b2f28a80ac65fe4bbf3fb
commit: b455e3a3ec871f584a9b2f28a80ac65fe4bbf3fb [2/2] PCI: v3-semi: Add V3 Semiconductor PCI host driver
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b455e3a3ec871f584a9b2f28a80ac65fe4bbf3fb
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-v3-semi.c: In function 'v3_pci_parse_map_dma_ranges':
>> drivers/pci/host/pci-v3-semi.c:702:6: error: implicit declaration of function 'of_pci_dma_range_parser_init' [-Werror=implicit-function-declaration]
     if (of_pci_dma_range_parser_init(&parser, np)) {
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/of_pci_dma_range_parser_init +702 drivers/pci/host/pci-v3-semi.c

   693	
   694	static int v3_pci_parse_map_dma_ranges(struct v3_pci *v3,
   695					       struct device_node *np)
   696	{
   697		struct of_pci_range range;
   698		struct of_pci_range_parser parser;
   699		struct device *dev = v3->dev;
   700		int i = 0;
   701	
 > 702		if (of_pci_dma_range_parser_init(&parser, np)) {
   703			dev_err(dev, "missing dma-ranges property\n");
   704			return -EINVAL;
   705		}
   706	
   707		/*
   708		 * Get the dma-ranges from the device tree
   709		 */
   710		for_each_of_pci_range(&parser, &range) {
   711			int ret;
   712			u32 pci_base, pci_map;
   713	
   714			ret = v3_get_dma_range_config(v3, &range, &pci_base, &pci_map);
   715			if (ret)
   716				return ret;
   717	
   718			if (i == 0) {
   719				writel(pci_base, v3->base + V3_PCI_BASE0);
   720				writel(pci_map, v3->base + V3_PCI_MAP0);
   721			} else if (i == 1) {
   722				writel(pci_base, v3->base + V3_PCI_BASE1);
   723				writel(pci_map, v3->base + V3_PCI_MAP1);
   724			} else {
   725				dev_err(dev, "too many ranges, only two supported\n");
   726				dev_err(dev, "range %d ignored\n", i);
   727			}
   728			i++;
   729		}
   730		return 0;
   731	}
   732	

---
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