[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202311290021.Jo3VlA8D-lkp@intel.com>
Date: Wed, 29 Nov 2023 00:21:33 +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 errors:
[auto build test ERROR 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-001-20231128 (https://download.01.org/0day-ci/archive/20231129/202311290021.Jo3VlA8D-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/202311290021.Jo3VlA8D-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/202311290021.Jo3VlA8D-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/damon/sysfs.c:1415:6: warning: variable 'count' set but not used [-Wunused-but-set-variable]
int count = 0;
^
In file included from mm/damon/sysfs.c:2139:
>> mm/damon/sysfs-test.h:15:21: error: redefinition of 'nr_damon_targets'
static unsigned int nr_damon_targets(struct damon_ctx *ctx)
^
mm/damon/sysfs.c:1411:21: note: previous definition is here
static unsigned int nr_damon_targets(struct damon_ctx *ctx)
^
1 warning and 1 error generated.
vim +/nr_damon_targets +15 mm/damon/sysfs-test.h
b8ee5575f763c2 SeongJae Park 2023-10-22 14
b8ee5575f763c2 SeongJae Park 2023-10-22 @15 static unsigned int nr_damon_targets(struct damon_ctx *ctx)
b8ee5575f763c2 SeongJae Park 2023-10-22 16 {
b8ee5575f763c2 SeongJae Park 2023-10-22 17 struct damon_target *t;
b8ee5575f763c2 SeongJae Park 2023-10-22 18 unsigned int nr_targets = 0;
b8ee5575f763c2 SeongJae Park 2023-10-22 19
b8ee5575f763c2 SeongJae Park 2023-10-22 20 damon_for_each_target(t, ctx)
b8ee5575f763c2 SeongJae Park 2023-10-22 21 nr_targets++;
b8ee5575f763c2 SeongJae Park 2023-10-22 22
b8ee5575f763c2 SeongJae Park 2023-10-22 23 return nr_targets;
b8ee5575f763c2 SeongJae Park 2023-10-22 24 }
b8ee5575f763c2 SeongJae Park 2023-10-22 25
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists