All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.13/muqss 3/19] kernel/sched/MuQSS.c:3759:2: error: implicit declaration of function 'psi_task_tick'; did you mean 'task_tick'?
@ 2021-08-05 16:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-05 16:46 UTC (permalink / raw
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.13/muqss
head:   56f24ae800a796c1b04b2a9e5d6c3aa717a5ef61
commit: 512f9bcc181e532b200ee37678a8ab0186e6d821 [3/19] MultiQueue Skiplist Scheduler v0.210
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.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/512f9bcc181e532b200ee37678a8ab0186e6d821
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.13/muqss
        git checkout 512f9bcc181e532b200ee37678a8ab0186e6d821
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm64 

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/MuQSS.c:250:12: warning: no previous prototype for 'arch_sd_sibling_asym_packing' [-Wmissing-prototypes]
     250 | int __weak arch_sd_sibling_asym_packing(void)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:648:6: warning: no previous prototype for 'resched_task' [-Wmissing-prototypes]
     648 | void resched_task(struct task_struct *p)
         |      ^~~~~~~~~~~~
   kernel/sched/MuQSS.c:2416:5: warning: no previous prototype for 'sysctl_schedstats' [-Wmissing-prototypes]
    2416 | int sysctl_schedstats(struct ctl_table *table, int write, void *buffer,
         |     ^~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:3132:15: warning: no previous prototype for 'nr_active' [-Wmissing-prototypes]
    3132 | unsigned long nr_active(void)
         |               ^~~~~~~~~
   kernel/sched/MuQSS.c: In function 'scheduler_tick':
>> kernel/sched/MuQSS.c:3759:2: error: implicit declaration of function 'psi_task_tick'; did you mean 'task_tick'? [-Werror=implicit-function-declaration]
    3759 |  psi_task_tick(rq);
         |  ^~~~~~~~~~~~~
         |  task_tick
   kernel/sched/MuQSS.c: At top level:
   kernel/sched/MuQSS.c:6540:1: warning: no previous prototype for '__do_set_cpus_allowed' [-Wmissing-prototypes]
    6540 | __do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
         | ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6684:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
    6684 | void resched_cpu(int cpu)
         |      ^~~~~~~~~~~
   kernel/sched/MuQSS.c:6697:6: warning: no previous prototype for 'select_nohz_load_balancer' [-Wmissing-prototypes]
    6697 | void select_nohz_load_balancer(int stop_tick)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6701:6: warning: no previous prototype for 'set_cpu_sd_state_idle' [-Wmissing-prototypes]
    6701 | void set_cpu_sd_state_idle(void) {}
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6755:6: warning: no previous prototype for 'wake_up_idle_cpu' [-Wmissing-prototypes]
    6755 | void wake_up_idle_cpu(int cpu)
         |      ^~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:7019:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    7019 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c: In function 'select_leaders':
   kernel/sched/MuQSS.c:7482:7: warning: variable 'smt_threads' set but not used [-Wunused-but-set-variable]
    7482 |  bool smt_threads = false;
         |       ^~~~~~~~~~~
   kernel/sched/MuQSS.c: In function 'setup_rq_orders':
   kernel/sched/MuQSS.c:7651:22: warning: unused variable 'i' [-Wunused-variable]
    7651 |  int cpu, other_cpu, i;
         |                      ^
   kernel/sched/MuQSS.c: At top level:
   kernel/sched/MuQSS.c:8162:6: warning: no previous prototype for 'init_idle_bootup_task' [-Wmissing-prototypes]
    8162 | void init_idle_bootup_task(struct task_struct *idle)
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8186:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
    8186 | struct task_group *sched_create_group(struct task_group *parent)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8197:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
    8197 | void sched_online_group(struct task_group *tg, struct task_group *parent)
         |      ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8208:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
    8208 | void sched_destroy_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8214:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes]
    8214 | void sched_offline_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8305:20: warning: initialized field overwritten [-Woverride-init]
    8305 |  .legacy_cftypes = cpu_legacy_files,
         |                    ^~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8305:20: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')
   cc1: some warnings being treated as errors
--
   kernel/sched/idle.c: In function 'do_idle':
>> kernel/sched/idle.c:268:2: error: implicit declaration of function 'nohz_run_idle_balance' [-Werror=implicit-function-declaration]
     268 |  nohz_run_idle_balance(cpu);
         |  ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   kernel/sched/topology.c: In function 'sched_debug_setup':
>> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
      17 |  sched_debug_verbose = true;
         |  ^~~~~~~~~~~~~~~~~~~
         |  sched_debug_setup
   kernel/sched/topology.c:17:2: note: each undeclared identifier is reported only once for each function it appears in
   kernel/sched/topology.c: In function 'sched_debug':
   kernel/sched/topology.c:25:9: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
      25 |  return sched_debug_verbose;
         |         ^~~~~~~~~~~~~~~~~~~
         |         sched_debug_setup
   kernel/sched/topology.c: In function 'sched_domain_debug':
   kernel/sched/topology.c:134:7: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
     134 |  if (!sched_debug_verbose)
         |       ^~~~~~~~~~~~~~~~~~~
         |       sched_debug_setup
   kernel/sched/topology.c: At top level:
   kernel/sched/topology.c:224:5: warning: no previous prototype for 'sched_energy_aware_handler' [-Wmissing-prototypes]
     224 | int sched_energy_aware_handler(struct ctl_table *table, int write,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/topology.c:510:6: warning: no previous prototype for 'sched_get_rd' [-Wmissing-prototypes]
     510 | void sched_get_rd(struct root_domain *rd)
         |      ^~~~~~~~~~~~
   kernel/sched/topology.c:515:6: warning: no previous prototype for 'sched_put_rd' [-Wmissing-prototypes]
     515 | void sched_put_rd(struct root_domain *rd)
         |      ^~~~~~~~~~~~
   kernel/sched/topology.c:766:5: warning: no previous prototype for 'group_balance_cpu' [-Wmissing-prototypes]
     766 | int group_balance_cpu(struct sched_group *sg)
         |     ^~~~~~~~~~~~~~~~~
   kernel/sched/topology.c: In function 'build_sched_domains':
   kernel/sched/topology.c:2152:12: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
    2152 |  if (rq && sched_debug_verbose) {
         |            ^~~~~~~~~~~~~~~~~~~
         |            sched_debug_setup
   kernel/sched/topology.c: In function 'partition_sched_domains_locked':
>> kernel/sched/topology.c:2396:2: error: implicit declaration of function 'update_sched_domain_debugfs'; did you mean 'sched_domain_debug'? [-Werror=implicit-function-declaration]
    2396 |  update_sched_domain_debugfs();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |  sched_domain_debug
   kernel/sched/topology.c: In function 'sched_debug':
   kernel/sched/topology.c:26:1: error: control reaches end of non-void function [-Werror=return-type]
      26 | }
         | ^
   cc1: some warnings being treated as errors
--
   In file included from include/linux/export.h:43,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/timer.h:5,
                    from include/linux/workqueue.h:9,
                    from kernel/sched/../workqueue_internal.h:11,
                    from kernel/sched/psi.c:133:
   kernel/sched/psi.c: In function 'psi_group_change':
>> kernel/sched/psi.c:731:42: error: implicit declaration of function 'cpu_curr'; did you mean 'cpu_rq'? [-Werror=implicit-function-declaration]
     731 |  if (unlikely(groupc->tasks[NR_ONCPU] && cpu_curr(cpu)->in_memstall))
         |                                          ^~~~~~~~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
>> kernel/sched/psi.c:731:55: error: invalid type argument of '->' (have 'int')
     731 |  if (unlikely(groupc->tasks[NR_ONCPU] && cpu_curr(cpu)->in_memstall))
         |                                                       ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   cc1: some warnings being treated as errors


vim +3759 kernel/sched/MuQSS.c

  3741	
  3742	/*
  3743	 * This function gets called by the timer code, with HZ frequency.
  3744	 * We call it with interrupts disabled.
  3745	 */
  3746	void scheduler_tick(void)
  3747	{
  3748		int cpu __maybe_unused = smp_processor_id();
  3749		struct rq *rq = cpu_rq(cpu);
  3750	
  3751		arch_scale_freq_tick();
  3752		sched_clock_tick();
  3753		update_clocks(rq);
  3754		update_load_avg(rq, 0);
  3755		update_cpu_clock_tick(rq, rq->curr);
  3756		task_tick(rq);
  3757		rq->last_scheduler_tick = rq->last_jiffy;
  3758		rq->last_tick = rq->clock;
> 3759		psi_task_tick(rq);
  3760		perf_event_task_tick();
  3761		sched_stop_tick(rq, cpu);
  3762	}
  3763	

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

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

only message in thread, other threads:[~2021-08-05 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-05 16:46 [zen-kernel-zen-kernel:5.13/muqss 3/19] kernel/sched/MuQSS.c:3759:2: error: implicit declaration of function 'psi_task_tick'; did you mean 'task_tick'? 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.