[gpio:thread-irq-simpler 36/36] drivers/gpio/gpio-adnp.c:482:52: warning: passing argument 3 of 'gpiochip_set_nested_irqchip' makes integer from pointer without a cast

[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 thread-irq-simpler
head:   415500f47fb6a4c6402b9a3622ff10b8cb3b1c84
commit: 415500f47fb6a4c6402b9a3622ff10b8cb3b1c84 [36/36] gpio: set explicit nesting on drivers
config: i386-randconfig-x019-201647 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 415500f47fb6a4c6402b9a3622ff10b8cb3b1c84
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpio/gpio-adnp.c: In function 'adnp_irq_setup':
>> drivers/gpio/gpio-adnp.c:482:52: warning: passing argument 3 of 'gpiochip_set_nested_irqchip' makes integer from pointer without a cast [-Wint-conversion]
     gpiochip_set_nested_irqchip(chip, &adnp_irq_chip, adnp_irq);
                                                       ^~~~~~~~
   In file included from drivers/gpio/gpio-adnp.c:9:0:
   include/linux/gpio/driver.h:273:6: note: expected 'int' but argument is of type 'irqreturn_t (*)(int,  void *) {aka enum irqreturn (*)(int,  void *)}'
    void gpiochip_set_nested_irqchip(struct gpio_chip *gpiochip,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/gpiochip_set_nested_irqchip +482 drivers/gpio/gpio-adnp.c

   466			dev_err(chip->parent, "can't request IRQ#%d: %d\n",
   467				adnp->client->irq, err);
   468			return err;
   469		}
   470	
   471		err = gpiochip_irqchip_add_nested(chip,
   472						  &adnp_irq_chip,
   473						  0,
   474						  handle_simple_irq,
   475						  IRQ_TYPE_NONE);
   476		if (err) {
   477			dev_err(chip->parent,
   478				"could not connect irqchip to gpiochip\n");
   479			return err;
   480		}
   481	
 > 482		gpiochip_set_nested_irqchip(chip, &adnp_irq_chip, adnp_irq);
   483	
   484		return 0;
   485	}
   486	
   487	static int adnp_i2c_probe(struct i2c_client *client,
   488					    const struct i2c_device_id *id)
   489	{
   490		struct device_node *np = client->dev.of_node;

---
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