Re: [PATCH 1/2] mm/damon/sysfs: Implement recording feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311290004.B2GD9Xbd-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux