mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [peterz-queue:sched/core 19/19] kernel/sched/deadline.c:1486:34: warning: variable 'stats' set but not used
@ 2021-09-10 19:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-10 19:21 UTC (permalink / raw)
  To: Yafang Shao; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2537 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28225 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-10 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 19:21 [peterz-queue:sched/core 19/19] kernel/sched/deadline.c:1486:34: warning: variable 'stats' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®