[gpio:devel 31/39] drivers/gpio/gpiolib.c:1474: warning: unused variable 'i'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel
head:   c1a4634013141b96324c647b45356e16f1fff781
commit: 923a654c186c43734cfac5d7af6940093051bcbc [31/39] gpiolib: Re-use bitmap_fill() instead of open coded loop
config: x86_64-randconfig-s0-05300027 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout 923a654c186c43734cfac5d7af6940093051bcbc
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpio/gpiolib.c: In function 'gpiochip_irqchip_init_valid_mask':
>> drivers/gpio/gpiolib.c:1474: warning: unused variable 'i'

vim +/i +1474 drivers/gpio/gpiolib.c

79697ef9 Alexandre Courbot 2013-11-16  1458  	return !strcmp(chip->label, name);
79697ef9 Alexandre Courbot 2013-11-16  1459  }
79697ef9 Alexandre Courbot 2013-11-16  1460  
79697ef9 Alexandre Courbot 2013-11-16  1461  static struct gpio_chip *find_chip_by_name(const char *name)
79697ef9 Alexandre Courbot 2013-11-16  1462  {
79697ef9 Alexandre Courbot 2013-11-16  1463  	return gpiochip_find((void *)name, gpiochip_match_name);
79697ef9 Alexandre Courbot 2013-11-16  1464  }
79697ef9 Alexandre Courbot 2013-11-16  1465  
14250520 Linus Walleij     2014-03-25  1466  #ifdef CONFIG_GPIOLIB_IRQCHIP
14250520 Linus Walleij     2014-03-25  1467  
14250520 Linus Walleij     2014-03-25  1468  /*
14250520 Linus Walleij     2014-03-25  1469   * The following is irqchip helper code for gpiochips.
14250520 Linus Walleij     2014-03-25  1470   */
14250520 Linus Walleij     2014-03-25  1471  
79b804cb Mika Westerberg   2016-09-20  1472  static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip)
79b804cb Mika Westerberg   2016-09-20  1473  {
79b804cb Mika Westerberg   2016-09-20 @1474  	int i;
79b804cb Mika Westerberg   2016-09-20  1475  
79b804cb Mika Westerberg   2016-09-20  1476  	if (!gpiochip->irq_need_valid_mask)
79b804cb Mika Westerberg   2016-09-20  1477  		return 0;
79b804cb Mika Westerberg   2016-09-20  1478  
79b804cb Mika Westerberg   2016-09-20  1479  	gpiochip->irq_valid_mask = kcalloc(BITS_TO_LONGS(gpiochip->ngpio),
79b804cb Mika Westerberg   2016-09-20  1480  					   sizeof(long), GFP_KERNEL);
79b804cb Mika Westerberg   2016-09-20  1481  	if (!gpiochip->irq_valid_mask)
79b804cb Mika Westerberg   2016-09-20  1482  		return -ENOMEM;

:::::: The code at line 1474 was first introduced by commit
:::::: 79b804cb6af4f128b2c53f0887c02537a7eb5824 gpiolib: Make it possible to exclude GPIOs from IRQ domain

:::::: TO: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
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 SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux