All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.10/muqss 14/21] kernel/sched/MuQSS.c:1685:13: warning: variable 'rq' set but not used
@ 2020-12-28  3:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-28  3:25 UTC (permalink / raw)
  To: kbuild-all

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

Hi Steven,

First bad commit (maybe != root cause):

tree:   https://github.com/zen-kernel/zen-kernel 5.10/muqss
head:   5e029bcb673aa73c2a432f5f78f60351821f5b33
commit: e219172bbe43aed68943e72b19897191b6bd8f8f [14/21] muqss: Fix build error on config leak
config: alpha-randconfig-r006-20201228 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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://github.com/zen-kernel/zen-kernel/commit/e219172bbe43aed68943e72b19897191b6bd8f8f
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.10/muqss
        git checkout e219172bbe43aed68943e72b19897191b6bd8f8f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

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/MuQSS.c:639:6: warning: no previous prototype for 'resched_task' [-Wmissing-prototypes]
     639 | void resched_task(struct task_struct *p)
         |      ^~~~~~~~~~~~
   kernel/sched/MuQSS.c: In function 'ttwu_stat':
>> kernel/sched/MuQSS.c:1685:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
    1685 |  struct rq *rq;
         |             ^~
   kernel/sched/MuQSS.c: At top level:
   kernel/sched/MuQSS.c:3076:15: warning: no previous prototype for 'nr_active' [-Wmissing-prototypes]
    3076 | unsigned long nr_active(void)
         |               ^~~~~~~~~
   kernel/sched/MuQSS.c:6234:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
    6234 | void resched_cpu(int cpu)
         |      ^~~~~~~~~~~
   kernel/sched/MuQSS.c:7697:6: warning: no previous prototype for 'init_idle_bootup_task' [-Wmissing-prototypes]
    7697 | void init_idle_bootup_task(struct task_struct *idle)
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7721:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
    7721 | struct task_group *sched_create_group(struct task_group *parent)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7732:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
    7732 | void sched_online_group(struct task_group *tg, struct task_group *parent)
         |      ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7743:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
    7743 | void sched_destroy_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7749:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes]
    7749 | void sched_offline_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7840:20: warning: initialized field overwritten [-Woverride-init]
    7840 |  .legacy_cftypes = cpu_legacy_files,
         |                    ^~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7840:20: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')


vim +/rq +1685 kernel/sched/MuQSS.c

9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1681  
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1682  static void
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1683  ttwu_stat(struct task_struct *p, int cpu, int wake_flags)
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1684  {
9d6b3eef3a1ec22 Con Kolivas 2019-10-25 @1685  	struct rq *rq;
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1686  
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1687  	if (!schedstat_enabled())
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1688  		return;
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1689  
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1690  	rq = this_rq();
9d6b3eef3a1ec22 Con Kolivas 2019-10-25  1691  

:::::: The code at line 1685 was first introduced by commit
:::::: 9d6b3eef3a1ec22d4d3c74e0b773ff52d3b3a209 MultiQueue Skiplist Scheduler v0.204

:::::: TO: Con Kolivas <kernel@kolivas.org>
:::::: CC: Steven Barrett <steven@liquorix.net>

---
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: 27850 bytes --]

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

only message in thread, other threads:[~2020-12-28  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28  3:25 [zen-kernel-zen-kernel:5.10/muqss 14/21] kernel/sched/MuQSS.c:1685:13: warning: variable 'rq' set but not used 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.