lkml.org 
[lkml]   [2021]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:sched/core 19/47] kernel/sched/deadline.c:1486:27: error: variable 'stats' set but not used
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: b2d5b9cec60fecc72a13191c2c6c05acf60975a5
commit: b5eb4a5f6521d58d5564b8746701bd67a92a2b11 [19/47] sched/dl: Support schedstats for deadline sched class
config: hexagon-buildonly-randconfig-r002-20211012 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
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/tip/tip.git/commit/?id=b5eb4a5f6521d58d5564b8746701bd67a92a2b11
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip sched/core
git checkout b5eb4a5f6521d58d5564b8746701bd67a92a2b11
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon

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

All errors (new ones prefixed by >>):

>> kernel/sched/deadline.c:1486:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
struct sched_statistics *stats;
^
kernel/sched/deadline.c:1498:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
struct sched_statistics *stats;
^
kernel/sched/deadline.c:1510:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
struct sched_statistics *stats;
^
3 errors generated.


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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-12 08:41    [W:0.038 / U:0.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site