From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id A5E666B0253 for ; Mon, 13 Nov 2017 19:10:30 -0500 (EST) Received: by mail-wm0-f70.google.com with SMTP id r68so4072332wmr.4 for ; Mon, 13 Nov 2017 16:10:30 -0800 (PST) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id n8si6901759wmh.218.2017.11.13.16.10.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 16:10:29 -0800 (PST) Date: Mon, 13 Nov 2017 16:10:26 -0800 From: Andrew Morton Subject: Re: [mmotm:master 180/303] arch/tile/kernel/setup.c:222:2: warning: the address of 'isolnodes' will always evaluate as 'true' Message-Id: <20171113161026.74c7931ba0f1cf378c27b928@linux-foundation.org> In-Reply-To: <201711111502.llJQ6zva%fengguang.wu@intel.com> References: <201711111502.llJQ6zva%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: kbuild test robot Cc: Michal Hocko , kbuild-all@01.org, Johannes Weiner , Linux Memory Management List On Sat, 11 Nov 2017 15:49:04 +0800 kbuild test robot wrote: > tree: git://git.cmpxchg.org/linux-mmotm.git master > head: 21c4efa7694b072dddce68082e16156f24e1c1f0 > commit: 224aa5f4017811570da4d0a332d9791da07b2fc7 [180/303] mm: simplify nodemask printing > config: tile-tilegx_defconfig (attached as .config) > compiler: tilegx-linux-gcc (GCC) 4.6.2 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 224aa5f4017811570da4d0a332d9791da07b2fc7 > # save the attached .config to linux build tree > make.cross ARCH=tile > > All warnings (new ones prefixed by >>): > > arch/tile/kernel/setup.c: In function 'setup_isolnodes': > >> arch/tile/kernel/setup.c:222:2: warning: the address of 'isolnodes' will always evaluate as 'true' [-Waddress] > >> arch/tile/kernel/setup.c:222:2: warning: the address of 'isolnodes' will always evaluate as 'true' [-Waddress] > > vim +222 arch/tile/kernel/setup.c > > 77f8c740 Chris Metcalf 2013-08-06 216 > 867e359b Chris Metcalf 2010-05-28 217 static int __init setup_isolnodes(char *str) > 867e359b Chris Metcalf 2010-05-28 218 { > 867e359b Chris Metcalf 2010-05-28 219 if (str == NULL || nodelist_parse(str, isolnodes) != 0) > 867e359b Chris Metcalf 2010-05-28 220 return -EINVAL; > 867e359b Chris Metcalf 2010-05-28 221 > 839b2680 Tejun Heo 2015-02-13 @222 pr_info("Set isolnodes value to '%*pbl'\n", > 839b2680 Tejun Heo 2015-02-13 223 nodemask_pr_args(&isolnodes)); > 867e359b Chris Metcalf 2010-05-28 224 return 0; > 867e359b Chris Metcalf 2010-05-28 225 } > 867e359b Chris Metcalf 2010-05-28 226 early_param("isolnodes", setup_isolnodes); > 867e359b Chris Metcalf 2010-05-28 227 Well that's irritating. Maybe we can suppress it with some mess involving builtin_constant_p? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org