All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:sched/core 19/47] kernel/sched/deadline.c:1486:27: error: variable 'stats' set but not used
@ 2021-10-12  6:40 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-12  6:40 UTC (permalink / raw)
  To: Yafang Shao; +Cc: llvm, kbuild-all, linux-kernel, x86

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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:sched/core 19/47] kernel/sched/deadline.c:1486:27: error: variable 'stats' set but not used
@ 2021-10-12  6:40 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-12  6:40 UTC (permalink / raw)
  To: kbuild-all

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

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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-12  6:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12  6:40 [tip:sched/core 19/47] kernel/sched/deadline.c:1486:27: error: variable 'stats' set but not used kernel test robot
2021-10-12  6:40 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.