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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux