[peterz-queue:sched/core 19/19] kernel/sched/deadline.c:1486:34: warning: variable 'stats' set but not used
From: kernel test robot
Date: Fri Sep 10 2021 - 15:22:24 EST
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@xxxxxxxxx>
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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip