[pinctrl:devel 45/47] drivers/pinctrl/pinctrl-amd.c:820:47: error: passing argument 3 of 'devm_request_irq' from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   05e51a4da2af5f68c911adcb888f103460a2e5b3
commit: d228375b0504c3bb955281e4309e292d78f5e9e7 [45/47] pinctrl: amd: Add support for additional GPIO
config: x86_64-randconfig-x014-201645 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout d228375b0504c3bb955281e4309e292d78f5e9e7
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/pinctrl/pinctrl-amd.c: In function 'amd_gpio_probe':
>> drivers/pinctrl/pinctrl-amd.c:820:47: error: passing argument 3 of 'devm_request_irq' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler,
                                                  ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/pinctrl/pinctrl-amd.c:29:0:
   include/linux/interrupt.h:170:1: note: expected 'irq_handler_t {aka enum irqreturn (*)(int,  void *)}' but argument is of type 'void (*)(struct irq_desc *)'
    devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler,
    ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/devm_request_irq +820 drivers/pinctrl/pinctrl-amd.c

   814	
   815		gpiochip_set_chained_irqchip(&gpio_dev->gc,
   816					 &amd_gpio_irqchip,
   817					 irq_base,
   818					 NULL);
   819	
 > 820		ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler,
   821				       IRQF_SHARED, dev_name(&pdev->dev), gpio_dev);
   822		if (ret)
   823			goto out2;

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