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: x86_64-randconfig-a003-20210519 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
ceb1ac9812cb0972cfa34cecc5e5704ae2a22063)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 function
'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:2850:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
> kernel/sched/core.c:5476:85: error: too many arguments provided
to function-like macro invocation
static_call_update(kentry_exit_cond_resched, (typeof(&kentry_exit_cond_resched)),
NULL);
^
include/linux/static_call.h:119:9: note: macro 'static_call_update' defined
here
#define static_call_update(name, func) \
^
> kernel/sched/core.c:5476:3: error: use of undeclared identifier
'static_call_update'; did you mean '__static_call_update'?
static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
^~~~~~~~~~~~~~~~~~
__static_call_update
include/linux/static_call.h:144:13: note: '__static_call_update' declared here
extern void __static_call_update(struct static_call_key *key, void *tramp, void
*func);
^
kernel/sched/core.c:5476:3: warning: expression result unused [-Wunused-value]
static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
^~~~~~~~~~~~~~~~~~
kernel/sched/core.c:5485:85: error: too many arguments provided to function-like macro
invocation
static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
^
include/linux/static_call.h:119:9: note: macro 'static_call_update' defined
here
#define static_call_update(name, func) \
^
kernel/sched/core.c:5485:3: error: use of undeclared identifier
'static_call_update'; did you mean '__static_call_update'?
static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
^~~~~~~~~~~~~~~~~~
__static_call_update
include/linux/static_call.h:144:13: note: '__static_call_update' declared here
extern void __static_call_update(struct static_call_key *key, void *tramp, void
*func);
^
kernel/sched/core.c:5485:3: warning: expression result unused [-Wunused-value]
static_call_update(kentry_exit_cond_resched,
(typeof(&kentry_exit_cond_resched)), NULL);
^~~~~~~~~~~~~~~~~~
3 warnings and 4 errors generated.
vim +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