[pm:bleeding-edge 117/118] drivers/base/power/wakeirq.c:48:2: note: in expansion of macro 'if'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   d710dd3bb720823a8a2d0d7ea9a29f5f891173c1
commit: 97ed22a97da0d1cff32eae4edf16d212621ec566 [117/118] PM / wakeup: Do not fail dev_pm_attach_wake_irq() unnecessarily
config: x86_64-randconfig-x013-201800 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 97ed22a97da0d1cff32eae4edf16d212621ec566
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/ioport.h:13:0,
                    from include/linux/device.h:16,
                    from drivers/base/power/wakeirq.c:14:
   drivers/base/power/wakeirq.c: In function 'dev_pm_attach_wake_irq':
   drivers/base/power/wakeirq.c:48:17: error: 'struct dev_pm_info' has no member named 'wakeup'; did you mean 'wakeirq'?
     if (dev->power.wakeup)
                    ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/base/power/wakeirq.c:48:2: note: in expansion of macro 'if'
     if (dev->power.wakeup)
     ^~
   drivers/base/power/wakeirq.c:48:17: error: 'struct dev_pm_info' has no member named 'wakeup'; did you mean 'wakeirq'?
     if (dev->power.wakeup)
                    ^
   include/linux/compiler.h:58:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/base/power/wakeirq.c:48:2: note: in expansion of macro 'if'
     if (dev->power.wakeup)
     ^~
   drivers/base/power/wakeirq.c:48:17: error: 'struct dev_pm_info' has no member named 'wakeup'; did you mean 'wakeirq'?
     if (dev->power.wakeup)
                    ^
   include/linux/compiler.h:69:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/base/power/wakeirq.c:48:2: note: in expansion of macro 'if'
     if (dev->power.wakeup)
     ^~
   drivers/base/power/wakeirq.c: At top level:
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:422:2: note: in expansion of macro 'if'
     if (p_size == (size_t)-1 && q_size == (size_t)-1)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:412:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:410:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:401:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:399:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:390:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:388:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:380:2: note: in expansion of macro 'if'
     if (p_size < size || q_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:377:3: note: in expansion of macro 'if'
      if (q_size < size)
      ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:375:3: note: in expansion of macro 'if'
      if (p_size < size)
      ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:374:2: note: in expansion of macro 'if'

vim +/if +48 drivers/base/power/wakeirq.c

  > 14	#include <linux/device.h>
    15	#include <linux/interrupt.h>
    16	#include <linux/irq.h>
    17	#include <linux/slab.h>
    18	#include <linux/pm_runtime.h>
    19	#include <linux/pm_wakeirq.h>
    20	
    21	#include "power.h"
    22	
    23	/**
    24	 * dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
    25	 * @dev: Device entry
    26	 * @irq: Device wake-up capable interrupt
    27	 * @wirq: Wake irq specific data
    28	 *
    29	 * Internal function to attach either a device IO interrupt or a
    30	 * dedicated wake-up interrupt as a wake IRQ.
    31	 */
    32	static int dev_pm_attach_wake_irq(struct device *dev, int irq,
    33					  struct wake_irq *wirq)
    34	{
    35		unsigned long flags;
    36	
    37		if (!dev || !wirq)
    38			return -EINVAL;
    39	
    40		spin_lock_irqsave(&dev->power.lock, flags);
    41		if (dev_WARN_ONCE(dev, dev->power.wakeirq,
    42				  "wake irq already initialized\n")) {
    43			spin_unlock_irqrestore(&dev->power.lock, flags);
    44			return -EEXIST;
    45		}
    46	
    47		dev->power.wakeirq = wirq;
  > 48		if (dev->power.wakeup)
    49			device_wakeup_attach_irq(dev, wirq);
    50	
    51		spin_unlock_irqrestore(&dev->power.lock, flags);
    52		return 0;
    53	}
    54	

---
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 IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux