Re: [PATCH v2 3/4] ipack: tpci200: change pci_iounmap to iounmap

From: kernel test robot
Date: Mon Aug 09 2021 - 14:23:24 EST


Hi Dongliang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc5 next-20210809]
[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/Dongliang-Mu/ipack-tpci200-fix-many-double-free-issues-in-tpci200_pci_probe/20210809-223416
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 36a21d51725af2ce0700c6ebcb6b9594aac658a6
config: i386-randconfig-a004-20210808 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/aab1c45ab3f37910ebb6f00f951c74ee88e25094
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dongliang-Mu/ipack-tpci200-fix-many-double-free-issues-in-tpci200_pci_probe/20210809-223416
git checkout aab1c45ab3f37910ebb6f00f951c74ee88e25094
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/ipack/carriers/

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

All errors (new ones prefixed by >>):

In file included from include/linux/io.h:13,
from include/linux/pci.h:39,
from drivers/ipack/carriers/tpci200.h:14,
from drivers/ipack/carriers/tpci200.c:12:
drivers/ipack/carriers/tpci200.c: In function 'tpci200_unregister':
>> arch/x86/include/asm/io.h:210:17: error: too many arguments to function 'iounmap'
210 | #define iounmap iounmap
| ^~~~~~~
drivers/ipack/carriers/tpci200.c:91:2: note: in expansion of macro 'iounmap'
91 | iounmap(tpci200->info->pdev, tpci200->info->interface_regs);
| ^~~~~~~
arch/x86/include/asm/io.h:209:13: note: declared here
209 | extern void iounmap(volatile void __iomem *addr);
| ^~~~~~~


vim +/iounmap +210 arch/x86/include/asm/io.h

133822c5c038b2 Jeremy Fitzhardinge 2009-02-06 208
133822c5c038b2 Jeremy Fitzhardinge 2009-02-06 209 extern void iounmap(volatile void __iomem *addr);
80b9ece1339374 Andy Shevchenko 2017-06-30 @210 #define iounmap iounmap
133822c5c038b2 Jeremy Fitzhardinge 2009-02-06 211

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

Attachment: .config.gz
Description: application/gzip