Re: [PATCH] PCI: Add pci_iounmap

From: kernel test robot
Date: Wed Aug 19 2020 - 16:44:29 EST


Hi George,

I love your patch! Yet something to improve:

[auto build test ERROR on pci/next]
[also build test ERROR on linux/master linus/master asm-generic/master v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/George-Cherian/PCI-Add-pci_iounmap/20200820-002342
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: microblaze-randconfig-r021-20200818 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

microblaze-linux-ld: lib/pci_iomap.o: in function `pci_iounmap':
>> lib/pci_iomap.c:143: multiple definition of `pci_iounmap'; arch/microblaze/pci/iomap.o:arch/microblaze/pci/iomap.c:15: first defined here

# https://github.com/0day-ci/linux/commit/2bb1d10d9162a34cc1e6abb29f57489525bae30f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review George-Cherian/PCI-Add-pci_iounmap/20200820-002342
git checkout 2bb1d10d9162a34cc1e6abb29f57489525bae30f
vim +143 lib/pci_iomap.c

137
138 #ifndef CONFIG_GENERIC_IOMAP
139 #define pci_iounmap pci_iounmap
140 void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
141 {
142 iounmap(addr);
> 143 }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip