Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1414111

drivers/gpio/gpiolib-of.c:317:2: error: implicit declaration of function 'iounmap'

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject drivers/gpio/gpiolib-of.c:317:2: error: implicit declaration of function 'iounmap'
Date 2016-06-05 15:00 +0200
Message-ID <rGFON-6Yd-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   049ec1b5a76d34a6980cccdb7c0baeb4eed7a993
commit: 296ad4acb8efeffa456e344c73dc9459f4e9e1a0 gpio: remove deps on ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB
date:   6 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/gpiolib-of.c: In function 'of_mm_gpiochip_add_data':
>> drivers/gpio/gpiolib-of.c:317:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
     iounmap(mm_gc->regs);
     ^~~~~~~
   cc1: some warnings being treated as errors
--
   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 +317 drivers/gpio/gpiolib-of.c

863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  301  	if (!mm_gc->regs)
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  302  		goto err1;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  303  
21451155 drivers/of/gpio.c         Anton Vorontsov 2008-04-30  304  	gc->base = -1;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  305  
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  306  	if (mm_gc->save_regs)
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  307  		mm_gc->save_regs(mm_gc);
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  308  
a19e3da5 drivers/of/gpio.c         Anton Vorontsov 2010-06-08  309  	mm_gc->gc.of_node = np;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  310  
3208b0f0 drivers/gpio/gpiolib-of.c Linus Walleij   2015-12-04  311  	ret = gpiochip_add_data(gc, data);
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  312  	if (ret)
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  313  		goto err2;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  314  
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  315  	return 0;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  316  err2:
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11 @317  	iounmap(mm_gc->regs);
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  318  err1:
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  319  	kfree(gc->label);
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  320  err0:
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  321  	pr_err("%s: GPIO chip registration failed with status %d\n",
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  322  	       np->full_name, ret);
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  323  	return ret;
863fbf49 drivers/of/gpio.c         Anton Vorontsov 2008-04-11  324  }
3208b0f0 drivers/gpio/gpiolib-of.c Linus Walleij   2015-12-04  325  EXPORT_SYMBOL(of_mm_gpiochip_add_data);

:::::: The code at line 317 was first introduced by commit
:::::: 863fbf4966a7ac301a4077e4a04d73e8abfdd7b2 [POWERPC] OF helpers for the GPIO API

:::::: TO: Anton Vorontsov <avorontsov@ru.mvista.com>
:::::: CC: Paul Mackerras <paulus@samba.org>

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

drivers/gpio/gpiolib-of.c:317:2: error: implicit declaration of  function 'iounmap' kbuild test robot <fengguang.wu@intel.com> - 2016-06-05 15:00 +0200

csiph-web