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 6962EC19F2A for ; Thu, 11 Aug 2022 15:35:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD7CE6B0073; Thu, 11 Aug 2022 11:35:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B60188E0001; Thu, 11 Aug 2022 11:35:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D8F36B0075; Thu, 11 Aug 2022 11:35:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 8AEB06B0073 for ; Thu, 11 Aug 2022 11:35:00 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5F1AF40203 for ; Thu, 11 Aug 2022 15:35:00 +0000 (UTC) X-FDA: 79787709960.18.C555E29 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf15.hostedemail.com (Postfix) with ESMTP id 07F6EA0065 for ; Thu, 11 Aug 2022 15:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660232099; x=1691768099; h=date:from:to:cc:subject:message-id:mime-version; bh=8VA7b9zvWGpYUuv1kaUcIR4ik9uw7iIaoAG3SVmlK2k=; b=Htob8xmB9wJByqx998d3Fy3BKFTC4UIgs1si9U6TizrBjJ4vKqAKBXX1 x3TwUGwn25i9J06QljSfxR5q9pSOpGi0g2AfaiFbvLNWR7XzWATR2+EZe MNBQxwuLVdxHSI2Y76xPkpkaBAmRZNNOuViQIyJr+wIfPhFUymwoaXRKR XJMyV6RtP+sZyPOJEl1w02C0UAzA5kg3Q+wPvp1bh0Cs7ohtNVRVWq2vg j9DFiYrzZjnEKCA5pAV3y33CfhQ7L6leR1RaPtOvrUvjzFpHpP2f2Vdhb 4gzgV7e5d84ned9TnsGfDOdmxsIlNxbc1R6NJUpm+ssT1mJ1EhdK2/tW8 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10436"; a="278327690" X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="278327690" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 08:34:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="581715898" Received: from lkp-server02.sh.intel.com (HELO cfab306db114) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 11 Aug 2022 08:34:55 -0700 Received: from kbuild by cfab306db114 with local (Exim 4.96) (envelope-from ) id 1oMAD0-0000Lz-2C; Thu, 11 Aug 2022 15:34:54 +0000 Date: Thu, 11 Aug 2022 23:34:49 +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: [stable:linux-4.19.y 2814/3442] include/linux/nodemask.h:380:20: error: comparison of unsigned expression in '>= 0' is always true Message-ID: <202208112328.09GkLSzy-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660232100; a=rsa-sha256; cv=none; b=8ktAJwxJXyWSFYwIepXrWJWEQ+5al5TosAMna6LA/JsArcyNcnq+KUlaYvtiLqO2vm/fUl VtuT2yIY4DjT2MlEPUvvNr2IyvQn2nO7RId5u6V82Xx2Vm+SfPFmP+MpTXF2oHrK7gHZnz iL22pnb4xmwHcKlXkMX1Xc80AUWEaWQ= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Htob8xmB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660232100; 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=w1P0lvqpl8gi3Yuw4ocWckUT/ezIYPiA33gCPEwdi/k=; b=3VQvzh5v0CTJpAnlb7NR5Odox7ut4wQ63iPk/OFL2XZ5m1gLVTJT+ZyLLPiJQxOeYl538o eNdA7nNQjGHfQJCZfZ32TmMFxXaQDvPaLwQGWzQDx9K55zdnpt1DchjmNG/ID/xb5bC0Ro GbAJiUIOECnf5d3ZA7xKaoqg3Wm9/0w= X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 07F6EA0065 Authentication-Results: imf15.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=Htob8xmB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Stat-Signature: a4tpu1gzssydxak4seb4ruk4de1qeraq X-HE-Tag: 1660232098-67738 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.git linux-4.19.y head: 5c7ccbe1aade74e854fb7f9fa001dc1110a0030e commit: 8d8681d07fc82557d09d9cdc177f9ed529d9a4d8 [2814/3442] nodemask.h: fix compilation error with GCC12 config: alpha-randconfig-r001-20220811 (https://download.01.org/0day-ci/archive/20220811/202208112328.09GkLSzy-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.git/commit/?id=8d8681d07fc82557d09d9cdc177f9ed529d9a4d8 git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git git fetch --no-tags stable linux-4.19.y git checkout 8d8681d07fc82557d09d9cdc177f9ed529d9a4d8 # 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 >>): 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:305:9: note: in expansion of macro 'for_each_online_node' 305 | 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