[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202311290004.B2GD9Xbd-lkp@intel.com>
Date: Wed, 29 Nov 2023 00:11:07 +0800
From: kernel test robot <lkp@...el.com>
To: cuiyangpei <cuiyangpei@...il.com>, sj@...nel.org,
akpm@...ux-foundation.org, damon@...ts.linux.dev,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
cuiyangpei <cuiyangpei@...omi.com>
Subject: Re: [PATCH 1/2] mm/damon/sysfs: Implement recording feature
Hi cuiyangpei,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/cuiyangpei/mm-damon-core-add-sysfs-nodes-to-set-last_nr_accesses-weight/20231128-194153
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20231128073440.11894-1-cuiyangpei%40xiaomi.com
patch subject: [PATCH 1/2] mm/damon/sysfs: Implement recording feature
config: i386-buildonly-randconfig-002-20231128 (https://download.01.org/0day-ci/archive/20231129/202311290004.B2GD9Xbd-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231129/202311290004.B2GD9Xbd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311290004.B2GD9Xbd-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/damon/sysfs.c:1415:6: warning: variable 'count' set but not used [-Wunused-but-set-variable]
int count = 0;
^
1 warning generated.
vim +/count +1415 mm/damon/sysfs.c
1410
1411 static unsigned int nr_damon_targets(struct damon_ctx *ctx)
1412 {
1413 struct damon_target *t;
1414 unsigned int nr_targets = 0;
> 1415 int count = 0;
1416
1417 damon_for_each_target(t, ctx) {
1418 count++;
1419 nr_targets++;
1420 }
1421
1422 return nr_targets;
1423 }
1424
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists