lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 5 Jun 2016 20:56:57 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	Linus Walleij <linus.walleij@...aro.org>
Subject: drivers/gpio/gpiolib-of.c:317:2: error: implicit declaration of
 function 'iounmap'

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@...mvista.com>
:::::: CC: Paul Mackerras <paulus@...ba.org>

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

Download attachment ".config.gz" of type "application/octet-stream" (17990 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ