From: kbuild test robot <fengguang.wu@intel.com>
To: Michal Hocko <mhocko@suse.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 180/303] include/linux/nodemask.h:107:41: warning: the address of 'nodes' will always evaluate as 'true'
Date: Sat, 11 Nov 2017 12:29:02 +0800 [thread overview]
Message-ID: <201711111200.aZXvajf3%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2032 bytes --]
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 #2: .config.gz --]
[-- Type: application/gzip, Size: 26136 bytes --]
reply other threads:[~2017-11-11 4:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201711111200.aZXvajf3%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).