Re: [PATCH] net: hisilicon: add OF dependency

kbuild test robot
2015-10-16T18:17:43Z

[-- Attachment #1: Type: text/plain, Size: 2848 bytes --]

Hi Arnd,

[auto build test ERROR on net-next/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/net-hisilicon-add-OF-dependency/20151016-173818
config: um-allyesconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=um

All errors (new ones prefixed by >>):

drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_get_cfg':
>> drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:151:3: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
iounmap(dsaf_dev->io_base);
^
cc1: some warnings being treated as errors

vim +/iounmap +151 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

511e6bc0 huangdaode 2015-09-17 135 dsaf_dev->buf_size_type = hns_rcb_buf_size2type(buf_size);
511e6bc0 huangdaode 2015-09-17 136 if (dsaf_dev->buf_size_type < 0) {
511e6bc0 huangdaode 2015-09-17 137 dev_err(dsaf_dev->dev,
511e6bc0 huangdaode 2015-09-17 138 "buf_size(%d) is wrong!\n", buf_size);
511e6bc0 huangdaode 2015-09-17 139 goto unmap_base_addr;
511e6bc0 huangdaode 2015-09-17 140 }
511e6bc0 huangdaode 2015-09-17 141
511e6bc0 huangdaode 2015-09-17 142 if (!dma_set_mask_and_coherent(dsaf_dev->dev, DMA_BIT_MASK(64ULL)))
511e6bc0 huangdaode 2015-09-17 143 dev_dbg(dsaf_dev->dev, "set mask to 64bit\n");
511e6bc0 huangdaode 2015-09-17 144 else
511e6bc0 huangdaode 2015-09-17 145 dev_err(dsaf_dev->dev, "set mask to 64bit fail!\n");
511e6bc0 huangdaode 2015-09-17 146
511e6bc0 huangdaode 2015-09-17 147 return 0;
511e6bc0 huangdaode 2015-09-17 148
511e6bc0 huangdaode 2015-09-17 149 unmap_base_addr:
511e6bc0 huangdaode 2015-09-17 150 if (dsaf_dev->io_base)
511e6bc0 huangdaode 2015-09-17 @151 iounmap(dsaf_dev->io_base);
511e6bc0 huangdaode 2015-09-17 152 if (dsaf_dev->ppe_base)
511e6bc0 huangdaode 2015-09-17 153 iounmap(dsaf_dev->ppe_base);
511e6bc0 huangdaode 2015-09-17 154 if (dsaf_dev->sds_base)
511e6bc0 huangdaode 2015-09-17 155 iounmap(dsaf_dev->sds_base);
511e6bc0 huangdaode 2015-09-17 156 if (dsaf_dev->sc_base)
511e6bc0 huangdaode 2015-09-17 157 iounmap(dsaf_dev->sc_base);
511e6bc0 huangdaode 2015-09-17 158 if (dsaf_dev->cpld_base)
511e6bc0 huangdaode 2015-09-17 159 iounmap(dsaf_dev->cpld_base);

:::::: The code at line 151 was first introduced by commit
:::::: 511e6bc071db1484d1a3d1d0bd4c244cf33910ff net: add Hisilicon Network Subsystem DSAF support

:::::: TO: huangdaode <huangdaode@hisilicon.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 16799 bytes --]