From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.7/main 339/3386] kernel/sched/alt_core.c:4421:17: error: implicit declaration of function 'hrtick_start'; did you mean 'hrtimer_start'?
Date: Sun, 24 Mar 2024 23:21:28 +0800 [thread overview]
Message-ID: <202403242301.PdcKymie-lkp@intel.com> (raw)
Hi Alfred,
FYI, the error/warning still remains.
tree: https://github.com/zen-kernel/zen-kernel 6.7/main
head: 56c7820d4581e633d4d3a9015a5c45d9f4f67b01
commit: ebaeb5047fbecd36cfc083ac68656600eb52e1d2 [339/3386] sched/alt: [Sync] 95c74abe404d io_uring: move to separate directory
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240324/202403242301.PdcKymie-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403242301.PdcKymie-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403242301.PdcKymie-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/sched.h:9,
from kernel/sched/alt_core.c:42:
kernel/sched/alt_sched.h:481:42: warning: 'struct cpuidle_state' declared inside parameter list will not be visible outside of this definition or declaration
481 | struct cpuidle_state *idle_state)
| ^~~~~~~~~~~~~
kernel/sched/alt_core.c: In function 'update_rq_clock':
kernel/sched/alt_core.c:578:21: error: implicit declaration of function 'sched_clock_cpu' [-Werror=implicit-function-declaration]
578 | s64 delta = sched_clock_cpu(cpu_of(rq)) - rq->clock;
| ^~~~~~~~~~~~~~~
kernel/sched/alt_core.c: At top level:
kernel/sched/alt_core.c:966:6: warning: no previous prototype for 'resched_curr' [-Wmissing-prototypes]
966 | void resched_curr(struct rq *rq)
| ^~~~~~~~~~~~
kernel/sched/alt_core.c:989:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
989 | void resched_cpu(int cpu)
| ^~~~~~~~~~~
kernel/sched/alt_core.c: In function 'scheduler_tick':
kernel/sched/alt_core.c:3894:9: error: implicit declaration of function 'sched_clock_tick'; did you mean 'scheduler_tick'? [-Werror=implicit-function-declaration]
3894 | sched_clock_tick();
| ^~~~~~~~~~~~~~~~
| scheduler_tick
kernel/sched/alt_core.c: In function 'choose_next_task':
>> kernel/sched/alt_core.c:4421:17: error: implicit declaration of function 'hrtick_start'; did you mean 'hrtimer_start'? [-Werror=implicit-function-declaration]
4421 | hrtick_start(rq, next->time_slice);
| ^~~~~~~~~~~~
| hrtimer_start
kernel/sched/alt_core.c: In function '__schedule':
kernel/sched/alt_core.c:4558:49: error: 'PF_FROZEN' undeclared (first use in this function); did you mean 'PF_ROSE'?
4558 | !(prev->flags & PF_FROZEN);
| ^~~~~~~~~
| PF_ROSE
kernel/sched/alt_core.c:4558:49: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/alt_core.c: In function 'sched_submit_work':
kernel/sched/alt_core.c:4674:13: error: implicit declaration of function 'tsk_is_pi_blocked'; did you mean 'osq_is_locked'? [-Werror=implicit-function-declaration]
4674 | if (tsk_is_pi_blocked(tsk))
| ^~~~~~~~~~~~~~~~~
| osq_is_locked
kernel/sched/alt_core.c: In function '__sched_setscheduler':
kernel/sched/alt_core.c:5357:17: error: implicit declaration of function 'cpuset_read_lock'; did you mean 'cpus_read_lock'? [-Werror=implicit-function-declaration]
5357 | cpuset_read_lock();
| ^~~~~~~~~~~~~~~~
| cpus_read_lock
kernel/sched/alt_core.c:5405:25: error: implicit declaration of function 'cpuset_read_unlock'; did you mean 'cpus_read_unlock'? [-Werror=implicit-function-declaration]
5405 | cpuset_read_unlock();
| ^~~~~~~~~~~~~~~~~~
| cpus_read_unlock
kernel/sched/alt_core.c: At top level:
kernel/sched/alt_core.c:7238:13: warning: no previous prototype for 'sched_init_smp' [-Wmissing-prototypes]
7238 | void __init sched_init_smp(void)
| ^~~~~~~~~~~~~~
kernel/sched/alt_core.c:7278:13: warning: no previous prototype for 'sched_init' [-Wmissing-prototypes]
7278 | void __init sched_init(void)
| ^~~~~~~~~~
kernel/sched/alt_core.c:7633:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
7633 | struct task_group *sched_create_group(struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7644:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
7644 | void sched_online_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7655:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
7655 | void sched_destroy_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7661:6: warning: no previous prototype for 'sched_release_group' [-Wmissing-prototypes]
7661 | void sched_release_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7731:5: warning: no previous prototype for 'sched_group_set_shares' [-Wmissing-prototypes]
7731 | int sched_group_set_shares(struct task_group *tg, unsigned long shares)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7800:27: warning: initialized field overwritten [-Woverride-init]
7800 | .legacy_cftypes = cpu_legacy_files,
| ^~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7800:27: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')
cc1: some warnings being treated as errors
vim +4421 kernel/sched/alt_core.c
9f08fc0c802aa6 Alfred Chen 2019-08-19 4399
9f08fc0c802aa6 Alfred Chen 2019-08-19 4400 static inline struct task_struct *
9f08fc0c802aa6 Alfred Chen 2019-08-19 4401 choose_next_task(struct rq *rq, int cpu, struct task_struct *prev)
9f08fc0c802aa6 Alfred Chen 2019-08-19 4402 {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4403 struct task_struct *next;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4404
9f08fc0c802aa6 Alfred Chen 2019-08-19 4405 if (unlikely(rq->skip)) {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4406 next = rq_runnable_task(rq);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4407 if (next == rq->idle) {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4408 #ifdef CONFIG_SMP
9f08fc0c802aa6 Alfred Chen 2019-08-19 4409 if (!take_other_rq_tasks(rq, cpu)) {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4410 #endif
9f08fc0c802aa6 Alfred Chen 2019-08-19 4411 rq->skip = NULL;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4412 schedstat_inc(rq->sched_goidle);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4413 return next;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4414 #ifdef CONFIG_SMP
9f08fc0c802aa6 Alfred Chen 2019-08-19 4415 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4416 next = rq_runnable_task(rq);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4417 #endif
9f08fc0c802aa6 Alfred Chen 2019-08-19 4418 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4419 rq->skip = NULL;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4420 #ifdef CONFIG_HIGH_RES_TIMERS
9f08fc0c802aa6 Alfred Chen 2019-08-19 @4421 hrtick_start(rq, next->time_slice);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4422 #endif
9f08fc0c802aa6 Alfred Chen 2019-08-19 4423 return next;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4424 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4425
9f08fc0c802aa6 Alfred Chen 2019-08-19 4426 next = sched_rq_first_task(rq);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4427 if (next == rq->idle) {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4428 #ifdef CONFIG_SMP
9f08fc0c802aa6 Alfred Chen 2019-08-19 4429 if (!take_other_rq_tasks(rq, cpu)) {
9f08fc0c802aa6 Alfred Chen 2019-08-19 4430 #endif
9f08fc0c802aa6 Alfred Chen 2019-08-19 4431 schedstat_inc(rq->sched_goidle);
ea649f245b5cf1 Alfred Chen 2020-08-09 4432 /*printk(KERN_INFO "sched: choose_next_task(%d) idle %px\n", cpu, next);*/
9f08fc0c802aa6 Alfred Chen 2019-08-19 4433 return next;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4434 #ifdef CONFIG_SMP
9f08fc0c802aa6 Alfred Chen 2019-08-19 4435 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4436 next = sched_rq_first_task(rq);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4437 #endif
9f08fc0c802aa6 Alfred Chen 2019-08-19 4438 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4439 #ifdef CONFIG_HIGH_RES_TIMERS
9f08fc0c802aa6 Alfred Chen 2019-08-19 4440 hrtick_start(rq, next->time_slice);
9f08fc0c802aa6 Alfred Chen 2019-08-19 4441 #endif
ea649f245b5cf1 Alfred Chen 2020-08-09 4442 /*printk(KERN_INFO "sched: choose_next_task(%d) next %px\n", cpu,
ea649f245b5cf1 Alfred Chen 2020-08-09 4443 * next);*/
9f08fc0c802aa6 Alfred Chen 2019-08-19 4444 return next;
9f08fc0c802aa6 Alfred Chen 2019-08-19 4445 }
9f08fc0c802aa6 Alfred Chen 2019-08-19 4446
:::::: The code at line 4421 was first introduced by commit
:::::: 9f08fc0c802aa60b849cb326294a06f38abaa0b0 Project C v5.7.5-r2
:::::: TO: Alfred Chen <cchalpha@gmail.com>
:::::: CC: Alfred Chen <cchalpha@gmail.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-03-24 15:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202403242301.PdcKymie-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=steven@liquorix.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.