[lkml]   [2022]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[l1k:smsc95xx_5.17 79/888] drivers/gpio/gpio-bcm-virt.c:34:31: warning: variable 'gpio' set but not used
tree: smsc95xx_5.17
head: 240f56c27361c195cd502d95aba51c6b8e5b808c
commit: caa59900dd53b8b063c04d41c7c0b1450f296b52 [79/888] bcm2835-virtgpio: Virtual GPIO driver
config: arm-allyesconfig (
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add l1k
git fetch --no-tags l1k smsc95xx_5.17
git checkout caa59900dd53b8b063c04d41c7c0b1450f296b52
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/char/broadcom/ drivers/gpio/ drivers/perf/

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

All warnings (new ones prefixed by >>):

drivers/gpio/gpio-bcm-virt.c: In function 'brcmvirt_gpio_dir_in':
>> drivers/gpio/gpio-bcm-virt.c:34:31: warning: variable 'gpio' set but not used [-Wunused-but-set-variable]
34 | struct brcmvirt_gpio *gpio;
| ^~~~
drivers/gpio/gpio-bcm-virt.c: In function 'brcmvirt_gpio_dir_out':
drivers/gpio/gpio-bcm-virt.c:41:31: warning: variable 'gpio' set but not used [-Wunused-but-set-variable]
41 | struct brcmvirt_gpio *gpio;
| ^~~~

vim +/gpio +34 drivers/gpio/gpio-bcm-virt.c

32 static int brcmvirt_gpio_dir_in(struct gpio_chip *gc, unsigned off)
33 {
> 34 struct brcmvirt_gpio *gpio;
35 gpio = container_of(gc, struct brcmvirt_gpio, gc);
36 return -EINVAL;
37 }

0-DAY CI Kernel Test Service

 \ /
  Last update: 2022-04-11 04:46    [W:0.021 / U:2.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site