drivers/gpio/gpio-mpc8xxx.c:373:2: error: implicit declaration of function 'iounmap'

From: kbuild test robot
Date: Sun Jun 26 2016 - 06:03:43 EST


Hi,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: da2f6aba4a21f8da3331e5251a117c52764da579
commit: 296ad4acb8efeffa456e344c73dc9459f4e9e1a0 gpio: remove deps on ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB
date: 9 weeks ago
config: um-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout 296ad4acb8efeffa456e344c73dc9459f4e9e1a0
# save the attached .config to linux build tree
make ARCH=um

All errors (new ones prefixed by >>):

drivers/gpio/gpio-mpc8xxx.c: In function 'mpc8xxx_probe':
>> drivers/gpio/gpio-mpc8xxx.c:373:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
iounmap(mpc8xxx_gc->regs);
^~~~~~~
cc1: some warnings being treated as errors

vim +/iounmap +373 drivers/gpio/gpio-mpc8xxx.c

42178e2a1e drivers/gpio/gpio-mpc8xxx.c Liu Gang 2016-02-03 357 if (!mpc8xxx_gc->irqn)
98686d9a52 drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 358 return 0;
345e5c8a1c arch/powerpc/sysdev/mpc8xxx_gpio.c Peter Korsgaard 2010-01-07 359
a8db8cf0d8 drivers/gpio/gpio-mpc8xxx.c Grant Likely 2012-02-14 360 mpc8xxx_gc->irq = irq_domain_add_linear(np, MPC8XXX_GPIO_PINS,
a8db8cf0d8 drivers/gpio/gpio-mpc8xxx.c Grant Likely 2012-02-14 361 &mpc8xxx_gpio_irq_ops, mpc8xxx_gc);
345e5c8a1c arch/powerpc/sysdev/mpc8xxx_gpio.c Peter Korsgaard 2010-01-07 362 if (!mpc8xxx_gc->irq)
98686d9a52 drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 363 return 0;
345e5c8a1c arch/powerpc/sysdev/mpc8xxx_gpio.c Peter Korsgaard 2010-01-07 364
345e5c8a1c arch/powerpc/sysdev/mpc8xxx_gpio.c Peter Korsgaard 2010-01-07 365 /* ack and mask all irqs */
cd0d3f58a0 drivers/gpio/gpio-mpc8xxx.c Axel Lin 2016-02-22 366 gc->write_reg(mpc8xxx_gc->regs + GPIO_IER, 0xffffffff);
cd0d3f58a0 drivers/gpio/gpio-mpc8xxx.c Axel Lin 2016-02-22 367 gc->write_reg(mpc8xxx_gc->regs + GPIO_IMR, 0);
345e5c8a1c arch/powerpc/sysdev/mpc8xxx_gpio.c Peter Korsgaard 2010-01-07 368
05379818e4 drivers/gpio/gpio-mpc8xxx.c Thomas Gleixner 2015-06-21 369 irq_set_chained_handler_and_data(mpc8xxx_gc->irqn,
05379818e4 drivers/gpio/gpio-mpc8xxx.c Thomas Gleixner 2015-06-21 370 mpc8xxx_gpio_irq_cascade, mpc8xxx_gc);
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 371 return 0;
42178e2a1e drivers/gpio/gpio-mpc8xxx.c Liu Gang 2016-02-03 372 err:
42178e2a1e drivers/gpio/gpio-mpc8xxx.c Liu Gang 2016-02-03 @373 iounmap(mpc8xxx_gc->regs);
42178e2a1e drivers/gpio/gpio-mpc8xxx.c Liu Gang 2016-02-03 374 return ret;
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 375 }
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 376
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 377 static int mpc8xxx_remove(struct platform_device *pdev)
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 378 {
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 379 struct mpc8xxx_gpio_chip *mpc8xxx_gc = platform_get_drvdata(pdev);
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 380
257e10752c drivers/gpio/gpio-mpc8xxx.c Ricardo Ribalda Delgado 2015-01-18 381 if (mpc8xxx_gc->irq) {

:::::: The code at line 373 was first introduced by commit
:::::: 42178e2a1e42b480ada954750f248b53d3fb5940 drivers/gpio: Switch gpio-mpc8xxx to use gpio-generic

:::::: TO: Liu Gang <Gang.Liu@xxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data