tree:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/kentry
head: fb951a475a1cd1e5e280ee8b4ce64a6a68c77b64
commit: dcdc171ab7d985c6e6eea0c4ccefb5785250ff8e [2/11] kentry: Rename irqentry to kentry
config: i386-randconfig-a003-20210519 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto x86/kentry
git checkout dcdc171ab7d985c6e6eea0c4ccefb5785250ff8e
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/core.c:2850:6: warning: no previous prototype for
'sched_set_stop_task' [-Wmissing-prototypes]
2850 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'sched_dynamic_update':
> kernel/sched/core.c:5476:89: error: macro
"static_call_update" passed 3 arguments, but takes just 2
5476 |
static_call_update(kentry_exit_cond_resched, (typeof(&kentry_exit_cond_resched)),
NULL);
|
^
In file included from include/linux/tracepoint.h:22,
from include/trace/events/sched.h:10,
from kernel/sched/core.c:10:
include/linux/static_call.h:119: note: macro "static_call_update" defined
here
119 | #define static_call_update(name, func) \
|
> kernel/sched/core.c:5476:3: error: 'static_call_update'
undeclared (first use in this function); did you mean 'static_call_site'?
5476 | static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
| ^~~~~~~~~~~~~~~~~~
| static_call_site
kernel/sched/core.c:5476:3: note: each undeclared identifier is reported only once for
each function it appears in
kernel/sched/core.c:5485:89: error: macro "static_call_update" passed 3
arguments, but takes just 2
5485 | static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
|
^
In file included from include/linux/tracepoint.h:22,
from include/trace/events/sched.h:10,
from kernel/sched/core.c:10:
include/linux/static_call.h:119: note: macro "static_call_update" defined
here
119 | #define static_call_update(name, func) \
|
vim +/static_call_update +5476 kernel/sched/core.c
5457
5458 void sched_dynamic_update(int mode)
5459 {
5460 /*
5461 * Avoid {NONE,VOLUNTARY} -> FULL transitions from ever ending up in
5462 * the ZERO state, which is invalid.
5463 */
5464 static_call_update(cond_resched, __cond_resched);
5465 static_call_update(might_resched, __cond_resched);
5466 static_call_update(preempt_schedule, __preempt_schedule_func);
5467 static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
5468 static_call_update(kentry_exit_cond_resched, kentry_exit_cond_resched);
5469
5470 switch (mode) {
5471 case preempt_dynamic_none:
5472 static_call_update(cond_resched, __cond_resched);
5473 static_call_update(might_resched, (void *)&__static_call_return0);
5474 static_call_update(preempt_schedule, NULL);
5475 static_call_update(preempt_schedule_notrace, NULL);
5476 static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
5477 pr_info("Dynamic
Preempt: none\n");
5478 break;
5479
5480 case preempt_dynamic_voluntary:
5481 static_call_update(cond_resched, __cond_resched);
5482 static_call_update(might_resched, __cond_resched);
5483 static_call_update(preempt_schedule, NULL);
5484 static_call_update(preempt_schedule_notrace, NULL);
5485 static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
5486 pr_info("Dynamic Preempt: voluntary\n");
5487 break;
5488
5489 case preempt_dynamic_full:
5490 static_call_update(cond_resched, (void *)&__static_call_return0);
5491 static_call_update(might_resched, (void *)&__static_call_return0);
5492 static_call_update(preempt_schedule, __preempt_schedule_func);
5493 static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func);
5494 static_call_update(kentry_exit_cond_resched, kentry_exit_cond_resched);
5495 pr_info("Dynamic Preempt: full\n");
5496 break;
5497 }
5498
5499 preempt_dynamic_mode = mode;
5500 }
5501
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org