From: kernel test robot <lkp@intel.com>
To: Johannes Weiner <hannes@cmpxchg.org>, linux-mm@kvack.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Hao Wang <haowang3@fb.com>, Abhishek Dhanotia <abhishekd@fb.com>,
"Huang, Ying" <ying.huang@intel.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
Yang Shi <yang.shi@linux.alibaba.com>,
Tim Chen <tim.c.chen@linux.intel.com>,
Davidlohr Bueso <dave@stgolabs.net>,
Adam Manzanares <a.manzanares@samsung.com>,
linux-kernel@vger.kernel.org, kernel-team@fb.com,
Hasan Al Maruf <hasanalmaruf@fb.com>
Subject: Re: [PATCH] mm: mempolicy: N:M interleave policy for tiered memory nodes
Date: Thu, 9 Jun 2022 07:44:20 +0800 [thread overview]
Message-ID: <202206090708.jaGUnz8e-lkp@intel.com> (raw)
In-Reply-To: <20220607171949.85796-1-hannes@cmpxchg.org>
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 <lkp@intel.com>
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
prev parent reply other threads:[~2022-06-08 23:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-07 17:19 Johannes Weiner
2022-06-08 4:19 ` Ying Huang
2022-06-08 14:16 ` Johannes Weiner
2022-06-08 18:15 ` Tim Chen
2022-06-08 19:14 ` Johannes Weiner
2022-06-08 23:40 ` Tim Chen
2022-06-08 23:44 ` kernel test robot [this message]
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=202206090708.jaGUnz8e-lkp@intel.com \
--to=lkp@intel.com \
--cc=a.manzanares@samsung.com \
--cc=abhishekd@fb.com \
--cc=dave.hansen@linux.intel.com \
--cc=dave@stgolabs.net \
--cc=hannes@cmpxchg.org \
--cc=haowang3@fb.com \
--cc=hasanalmaruf@fb.com \
--cc=kbuild-all@lists.01.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=tim.c.chen@linux.intel.com \
--cc=yang.shi@linux.alibaba.com \
--cc=ying.huang@intel.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