[mmotm:master 180/303] include/linux/nodemask.h:107:41: warning: the address of 'nodes' will always evaluate as 'true'

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   21c4efa7694b072dddce68082e16156f24e1c1f0
commit: 224aa5f4017811570da4d0a332d9791da07b2fc7 [180/303] mm: simplify nodemask printing
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 224aa5f4017811570da4d0a332d9791da07b2fc7
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/mmzone.h:17:0,
                    from include/linux/mempolicy.h:10,
                    from mm/mempolicy.c:70:
   mm/mempolicy.c: In function 'mpol_to_str':
>> include/linux/nodemask.h:107:41: warning: the address of 'nodes' will always evaluate as 'true' [-Waddress]
    #define nodemask_pr_args(maskp) (maskp) ? MAX_NUMNODES : 0, (maskp) ? (maskp)->bits : NULL
                                            ^
>> mm/mempolicy.c:2817:11: note: in expansion of macro 'nodemask_pr_args'
              nodemask_pr_args(&nodes));
              ^~~~~~~~~~~~~~~~
   include/linux/nodemask.h:107:69: warning: the address of 'nodes' will always evaluate as 'true' [-Waddress]
    #define nodemask_pr_args(maskp) (maskp) ? MAX_NUMNODES : 0, (maskp) ? (maskp)->bits : NULL
                                                                        ^
>> mm/mempolicy.c:2817:11: note: in expansion of macro 'nodemask_pr_args'
              nodemask_pr_args(&nodes));
              ^~~~~~~~~~~~~~~~

vim +107 include/linux/nodemask.h

   100	
   101	/**
   102	 * nodemask_pr_args - printf args to output a nodemask
   103	 * @maskp: nodemask to be printed
   104	 *
   105	 * Can be used to provide arguments for '%*pb[l]' when printing a nodemask.
   106	 */
 > 107	#define nodemask_pr_args(maskp)	(maskp) ? MAX_NUMNODES : 0, (maskp) ? (maskp)->bits : NULL
   108	

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux