lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109110335.N2V9kYpX-lkp@intel.com>
Date:   Sat, 11 Sep 2021 03:21:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yafang Shao <laoar.shao@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:sched/core 19/19] kernel/sched/deadline.c:1486:34:
 warning: variable 'stats' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head:   2dfdb3d20ad50e2ae2cb84cbceb0f0fc75e79e5d
commit: 2dfdb3d20ad50e2ae2cb84cbceb0f0fc75e79e5d [19/19] sched, dl: support schedstats for deadline sched class
config: m68k-buildonly-randconfig-r002-20210910 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=2dfdb3d20ad50e2ae2cb84cbceb0f0fc75e79e5d
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/core
        git checkout 2dfdb3d20ad50e2ae2cb84cbceb0f0fc75e79e5d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   kernel/sched/deadline.c: In function 'update_stats_wait_start_dl':
>> kernel/sched/deadline.c:1486:34: warning: variable 'stats' set but not used [-Wunused-but-set-variable]
    1486 |         struct sched_statistics *stats;
         |                                  ^~~~~
   kernel/sched/deadline.c: In function 'update_stats_wait_end_dl':
   kernel/sched/deadline.c:1498:34: warning: variable 'stats' set but not used [-Wunused-but-set-variable]
    1498 |         struct sched_statistics *stats;
         |                                  ^~~~~
   kernel/sched/deadline.c: In function 'update_stats_enqueue_sleeper_dl':
   kernel/sched/deadline.c:1510:34: warning: variable 'stats' set but not used [-Wunused-but-set-variable]
    1510 |         struct sched_statistics *stats;
         |                                  ^~~~~


vim +/stats +1486 kernel/sched/deadline.c

  1482	
  1483	static inline void
  1484	update_stats_wait_start_dl(struct dl_rq *dl_rq, struct sched_dl_entity *dl_se)
  1485	{
> 1486		struct sched_statistics *stats;
  1487	
  1488		if (!schedstat_enabled())
  1489			return;
  1490	
  1491		stats = __schedstats_from_dl_se(dl_se);
  1492		__update_stats_wait_start(rq_of_dl_rq(dl_rq), dl_task_of(dl_se), stats);
  1493	}
  1494	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (28225 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ