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]
Message-ID: <201709241125.37yqDIcY%fengguang.wu@intel.com>
Date:   Sun, 24 Sep 2017 11:37:29 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Anton Sviridenko <anton@...p.bluecherry.net>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Mauro Carvalho Chehab <m.chehab@...sung.com>,
        linux-media@...r.kernel.org, Ismael Luceno <ismael@...ev.co.uk>,
        Hans Verkuil <hverkuil@...all.nl>
Subject: drivers/media/pci/solo6x10/solo6x10-gpio.c:165: warning: unused
 variable 'ret'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cd4175b11685b11c40e31a03e05084cc212b0649
commit: d3202d1981dc5a5f03f9afc96480619b48b60124 media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface
date:   7 weeks ago
config: x86_64-randconfig-a0-09241049 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout d3202d1981dc5a5f03f9afc96480619b48b60124
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/media/pci/solo6x10/solo6x10-gpio.c: In function 'solo_gpio_init':
>> drivers/media/pci/solo6x10/solo6x10-gpio.c:165: warning: unused variable 'ret'

vim +/ret +165 drivers/media/pci/solo6x10/solo6x10-gpio.c

   162	
   163	int solo_gpio_init(struct solo_dev *solo_dev)
   164	{
 > 165		int ret;
   166	
   167		solo_gpio_config(solo_dev);
   168	#ifdef CONFIG_GPIOLIB
   169		solo_dev->gpio_dev.label = SOLO6X10_NAME"_gpio";
   170		solo_dev->gpio_dev.parent = &solo_dev->pdev->dev;
   171		solo_dev->gpio_dev.owner = THIS_MODULE;
   172		solo_dev->gpio_dev.base = -1;
   173		solo_dev->gpio_dev.ngpio = 24;
   174		solo_dev->gpio_dev.can_sleep = 0;
   175	
   176		solo_dev->gpio_dev.get_direction = solo_gpiochip_get_direction;
   177		solo_dev->gpio_dev.direction_input = solo_gpiochip_direction_input;
   178		solo_dev->gpio_dev.direction_output = solo_gpiochip_direction_output;
   179		solo_dev->gpio_dev.get = solo_gpiochip_get;
   180		solo_dev->gpio_dev.set = solo_gpiochip_set;
   181	
   182		ret = gpiochip_add_data(&solo_dev->gpio_dev, solo_dev);
   183	
   184		if (ret) {
   185			solo_dev->gpio_dev.label = NULL;
   186			return -1;
   187		}
   188	#endif
   189		return 0;
   190	}
   191	

---
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/gzip" (30745 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ