From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1929BC32774 for ; Wed, 24 Aug 2022 03:08:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D2546B0073; Tue, 23 Aug 2022 23:08:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 75BB3940007; Tue, 23 Aug 2022 23:08:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5FC926B0075; Tue, 23 Aug 2022 23:08:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4E2396B0073 for ; Tue, 23 Aug 2022 23:08:21 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 23AE61A0A90 for ; Wed, 24 Aug 2022 03:08:21 +0000 (UTC) X-FDA: 79833002802.19.F1CFADB Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf02.hostedemail.com (Postfix) with ESMTP id B9B6E80012 for ; Wed, 24 Aug 2022 03:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661310499; x=1692846499; h=date:from:to:cc:subject:message-id:mime-version; bh=1s31HwL/qmJsMfnUscxTRniE2iLAsgyMyxJVWjB7mM8=; b=Nh7sL9mC2QouxThCWmp/cDJWmoKS/DzYk7UAcfM6MB+NnkwLXDYYWLBy bfRrPahF5jWYe92ilmtiSZKwiNvpf4iVovqHdWQxEup0b9y9Cy7t+rIBx uIohAteG3PYf86QEepAdsyimCQ4DwZRIbsGF00ZTa32cSPU2PPjCfwre4 1hBh7oUDDPdYoNP13A+Dm6DF25hNcz/Xqnrmngrf0kWsSDKplaI+Q/Tpj UKmBCMPUyTlZvg+amrJdSpCMj/IGkRHij15piwsjtdWfVV1SAtPlUKbJW xzVRqPUF0jjLQdyGXmkBSvtigwedtLVtTwW63MlO7LnJ8E7mMdwoxYEBw Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10448"; a="291416782" X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="291416782" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 20:08:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="609589787" Received: from lkp-server02.sh.intel.com (HELO 9bbcefcddf9f) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 23 Aug 2022 20:08:16 -0700 Received: from kbuild by 9bbcefcddf9f with local (Exim 4.96) (envelope-from ) id 1oQgkZ-0000u4-1g; Wed, 24 Aug 2022 03:08:15 +0000 Date: Wed, 24 Aug 2022 11:07:31 +0800 From: kernel test robot To: Christophe de Dinechin Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Andrew Morton , Linux Memory Management List Subject: [linux-stable-rc:linux-5.4.y 3985/5188] include/linux/nodemask.h:380:20: error: comparison of unsigned expression in '>= 0' is always true Message-ID: <202208241143.v714cX1Y-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661310500; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=nizMhldWY9hbayK3+vJHXD+MVRYlRenwuX1YSqFI4Uc=; b=CDOxH1/DAc50QChML3h9txtC7vUv0323xjBWBmD4nEqNEsFYb9YKh+2XrAXHdEQ7esOaBB Mxw2oVLTsr9x6tYzmOnMQTSYPsPlSzCw8vBmS14c8/EBaS4S2j4oBpqbZrDDLMU4IOpq+3 qST4z5ujTVHautJJFRRnbf+x07St7Cw= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Nh7sL9mC; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661310500; a=rsa-sha256; cv=none; b=N565d7urGghaoB/SS+smrksujyx9XcjQvYyKf6J5gHFdnlyjEI3pQ/XLlsZZXi2TdIsf7Q nGJAytz0T9HCpQtNTH/RI9TYTpoxR9/4fsx3csS00hVftXC6JEoQ4cD6u0Ymj7LDzv2Iy3 YmD6FpWRIj7rsToru79SqGAdsoq0MpI= Authentication-Results: imf02.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Nh7sL9mC; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Stat-Signature: et91c3reg1n8uckte8u6uhwfbykqfnmw X-Rspamd-Queue-Id: B9B6E80012 X-Rspamd-Server: rspam10 X-HE-Tag: 1661310499-253791 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y head: 1cece69eaa889a27cf3e9f2051fcc57eda957271 commit: 73bdb2359dbc260364141c83dd1e1a5497f29d3d [3985/5188] nodemask.h: fix compilation error with GCC12 config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220824/202208241143.v714cX1Y-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=73bdb2359dbc260364141c83dd1e1a5497f29d3d git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-5.4.y git checkout 73bdb2359dbc260364141c83dd1e1a5497f29d3d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/alpha/mm/numa.c:162:1: error: no previous prototype for 'setup_memory' [-Werror=missing-prototypes] 162 | setup_memory(void *kernel_end) | ^~~~~~~~~~~~ In file included from include/linux/mmzone.h:17, from include/linux/gfp.h:6, from include/linux/mm.h:10, from arch/alpha/mm/numa.c:12: arch/alpha/mm/numa.c: In function 'paging_init': >> include/linux/nodemask.h:380:20: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits] 380 | (node >= 0) && (node) < MAX_NUMNODES; \ | ^~ include/linux/nodemask.h:433:9: note: in expansion of macro 'for_each_node_mask' 433 | for_each_node_mask((__node), node_states[__state]) | ^~~~~~~~~~~~~~~~~~ include/linux/nodemask.h:513:36: note: in expansion of macro 'for_each_node_state' 513 | #define for_each_online_node(node) for_each_node_state(node, N_ONLINE) | ^~~~~~~~~~~~~~~~~~~ arch/alpha/mm/numa.c:218:9: note: in expansion of macro 'for_each_online_node' 218 | for_each_online_node(nid) { | ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +380 include/linux/nodemask.h 376 377 #if MAX_NUMNODES > 1 378 #define for_each_node_mask(node, mask) \ 379 for ((node) = first_node(mask); \ > 380 (node >= 0) && (node) < MAX_NUMNODES; \ 381 (node) = next_node((node), (mask))) 382 #else /* MAX_NUMNODES == 1 */ 383 #define for_each_node_mask(node, mask) \ 384 for ((node) = 0; (node) < 1 && !nodes_empty(mask); (node)++) 385 #endif /* MAX_NUMNODES */ 386 -- 0-DAY CI Kernel Test Service https://01.org/lkp