* [peterz-queue:sched/core 25/25] kernel/sched/core.c:4053:24: error: call to undeclared function '__task_state_match'; ISO C99 and later do not support implicit function declarations
@ 2023-06-01 16:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-01 16:03 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: 1fd7ac28685ef6c242cc8689f97bc7014ae82ca5
commit: 1fd7ac28685ef6c242cc8689f97bc7014ae82ca5 [25/25] sched: Consider task_struct::saved_state in wait_task_inactive()
config: riscv-randconfig-r042-20230531 (https://download.01.org/0day-ci/archive/20230601/202306012322.qZLstogi-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=1fd7ac28685ef6c242cc8689f97bc7014ae82ca5
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/core
git checkout 1fd7ac28685ef6c242cc8689f97bc7014ae82ca5
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306012322.qZLstogi-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:4053:24: error: call to undeclared function '__task_state_match'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
*success = !!(match = __task_state_match(p, state));
^
kernel/sched/core.c:6815:35: warning: no previous prototype for function 'schedule_user' [-Wmissing-prototypes]
asmlinkage __visible void __sched schedule_user(void)
^
kernel/sched/core.c:6815:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __sched schedule_user(void)
^
static
1 warning and 1 error generated.
vim +/__task_state_match +4053 kernel/sched/core.c
4028
4029 /*
4030 * Invoked from try_to_wake_up() to check whether the task can be woken up.
4031 *
4032 * The caller holds p::pi_lock if p != current or has preemption
4033 * disabled when p == current.
4034 *
4035 * The rules of PREEMPT_RT saved_state:
4036 *
4037 * The related locking code always holds p::pi_lock when updating
4038 * p::saved_state, which means the code is fully serialized in both cases.
4039 *
4040 * The lock wait and lock wakeups happen via TASK_RTLOCK_WAIT. No other
4041 * bits set. This allows to distinguish all wakeup scenarios.
4042 */
4043 static __always_inline
4044 bool ttwu_state_match(struct task_struct *p, unsigned int state, int *success)
4045 {
4046 int match;
4047
4048 if (IS_ENABLED(CONFIG_DEBUG_PREEMPT)) {
4049 WARN_ON_ONCE((state & TASK_RTLOCK_WAIT) &&
4050 state != TASK_RTLOCK_WAIT);
4051 }
4052
> 4053 *success = !!(match = __task_state_match(p, state));
4054
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-01 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 16:03 [peterz-queue:sched/core 25/25] kernel/sched/core.c:4053:24: error: call to undeclared function '__task_state_match'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox