[gpio:devel 27/27] drivers/gpio/gpiolib.c:1622:62: error: macro "WARN_ON" passed 3 arguments, but takes just 1

[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:   1ded8b1dafe6c02008ba8ce0ca8d082bf66a05de
commit: 1ded8b1dafe6c02008ba8ce0ca8d082bf66a05de [27/27] gpio/gpiolib: Forbid irqchip default trigger if probed over DT
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout 1ded8b1dafe6c02008ba8ce0ca8d082bf66a05de
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpio/gpiolib.c: In function '_gpiochip_irqchip_add':
>> drivers/gpio/gpiolib.c:1622:62: error: macro "WARN_ON" passed 3 arguments, but takes just 1
          "%s: Ignoring %d default trigger\n", of_node->full_name))
                                                                 ^
>> drivers/gpio/gpiolib.c:1621:6: error: 'WARN_ON' undeclared (first use in this function)
     if (WARN_ON(of_node && type != IRQ_TYPE_NONE,
         ^~~~~~~
   drivers/gpio/gpiolib.c:1621:6: note: each undeclared identifier is reported only once for each function it appears in

vim +/WARN_ON +1622 drivers/gpio/gpiolib.c

  1615	#endif
  1616		/*
  1617		 * Specifying a default trigger is a terrible idea if DT is
  1618		 * used to configure the interrupts, as you may end-up with
  1619		 * conflicting triggers. Tell the user, and reset to NONE.
  1620		 */
> 1621		if (WARN_ON(of_node && type != IRQ_TYPE_NONE,
> 1622			    "%s: Ignoring %d default trigger\n", of_node->full_name))
  1623			type = IRQ_TYPE_NONE;
  1624	
  1625		gpiochip->irqchip = irqchip;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[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