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 40571C433EF for ; Wed, 8 Jun 2022 23:45:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 855B76B0073; Wed, 8 Jun 2022 19:45:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 804446B0074; Wed, 8 Jun 2022 19:45:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A51D6B0075; Wed, 8 Jun 2022 19:45:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5C03A6B0073 for ; Wed, 8 Jun 2022 19:45:26 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 2A3FE80707 for ; Wed, 8 Jun 2022 23:45:26 +0000 (UTC) X-FDA: 79556702652.17.FA630C9 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf25.hostedemail.com (Postfix) with ESMTP id 918C6A0077 for ; Wed, 8 Jun 2022 23:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654731923; x=1686267923; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=f905eM5bNst+aqOd4tSp5UMDRuBSJ2wsoWVFwPgHrC0=; b=I3DsU6OIlQ0j5dZZqQsntzsl4ti+MUKXSPrZdCDrU4zuem+gquBoqa82 YbG6KMYm8lS4AOGXVUR6tgkzJO4AQR2utk+NU5it3p/8ILN0PIGffJHbb IEO3Ew/z0W7BmFr4ENRB/jvoOvjWWSpuJAcA1p3xvu6t+k0o6kQnDRV0+ 4S4NYeTdznoyaEkOjZYjgDl6puR6h7p4IlD8vRf28E0x4jHlVeBeunfAL uGAVUnr+H5uDMLqMh7V4SyXcSbKlXh6BUFG2CozrU6dCkFLSyHN6KEUbr J0lCIwhqcGseSUnLU3E/hhA84zCNzbsVkND5DpVAzmDldutgybGocxeFm g==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="260224011" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="260224011" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 16:45:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="585174833" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 08 Jun 2022 16:45:12 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nz5MJ-000FEv-23; Wed, 08 Jun 2022 23:45:07 +0000 Date: Thu, 9 Jun 2022 07:44:20 +0800 From: kernel test robot To: Johannes Weiner , linux-mm@kvack.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Hao Wang , Abhishek Dhanotia , "Huang, Ying" , Dave Hansen , Yang Shi , Tim Chen , Davidlohr Bueso , Adam Manzanares , linux-kernel@vger.kernel.org, kernel-team@fb.com, Hasan Al Maruf Subject: Re: [PATCH] mm: mempolicy: N:M interleave policy for tiered memory nodes Message-ID: <202206090708.jaGUnz8e-lkp@intel.com> References: <20220607171949.85796-1-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607171949.85796-1-hannes@cmpxchg.org> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1654731925; a=rsa-sha256; cv=none; b=8fBerA1is8TFRC6cG2yM8hglm5zAtfPLADb0/FhgvwLhDfWWoYGEkMZGjsLDKK5wYbTVww chUp78K5hfymLekOEA9LZc1CSYhAYb0kIGwjkPOzIPvdZyfLer3MlY4TuHvVzETcaHS/iM zmXEejlhMtLsqrhYSmZacY5z8mnXgnQ= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=I3DsU6OI; spf=none (imf25.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1654731925; 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:in-reply-to:references:references:dkim-signature; bh=ptJz2Xhb2K+DfUcyWH5iZ1FdYVxbjj+QPpyNWMEmUoI=; b=CAeDdD72twNZERaoEb+DISi6ftZFr/nEJqJ2mtaszYBw6ElCJ4nZ0MwP5YWmqvdOhAD8ZW pdTfsdOvUs+5XBXQxZ6or70r39Hn2V9tt4p9JM9wf4yvqw02ORGaGQDkgwO8zCgDqx2qhD zG9REZSdBL2STQlIj/t1C1GPmpksziQ= X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 918C6A0077 X-Rspam-User: Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=I3DsU6OI; spf=none (imf25.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: qk4wfm18ub9k18kdggku15r98dodnuqk X-HE-Tag: 1654731923-655758 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: Hi Johannes, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Johannes-Weiner/mm-mempolicy-N-M-interleave-policy-for-tiered-memory-nodes/20220608-012652 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: x86_64-randconfig-a003 (https://download.01.org/0day-ci/archive/20220609/202206090708.jaGUnz8e-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a) 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://github.com/intel-lab-lkp/linux/commit/876d8daa0642d35f71ff504eeb3be4b950339a45 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Johannes-Weiner/mm-mempolicy-N-M-interleave-policy-for-tiered-memory-nodes/20220608-012652 git checkout 876d8daa0642d35f71ff504eeb3be4b950339a45 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> mm/mempolicy.c:1890:11: warning: variable 'next' is used uninitialized whenever function 'next_node_tier' is called [-Wsometimes-uninitialized] unsigned next, start = nid; ~~~~~~~~~^~~~ mm/mempolicy.c:1893:23: note: uninitialized use occurs here next = next_node_in(next, policy->nodes); ^~~~ include/linux/nodemask.h:278:46: note: expanded from macro 'next_node_in' #define next_node_in(n, src) __next_node_in((n), &(src)) ^ mm/mempolicy.c:1890:15: note: initialize the variable 'next' to silence this warning unsigned next, start = nid; ^ = 0 1 warning generated. vim +1890 mm/mempolicy.c 1887 1888 static unsigned next_node_tier(int nid, struct mempolicy *policy, bool toptier) 1889 { > 1890 unsigned next, start = nid; 1891 1892 do { 1893 next = next_node_in(next, policy->nodes); 1894 if (next == MAX_NUMNODES) 1895 break; 1896 if (toptier == node_is_toptier(next)) 1897 break; 1898 } while (next != start); 1899 return next; 1900 } 1901 -- 0-DAY CI Kernel Test Service https://01.org/lkp