tree:
https://android.googlesource.com/kernel/common android13-5.15
head: 81a0b5826138b3314eea90bcec18f5822b0a3575
commit: ca2177d4a03ddc4e6b64e54e0e7a176e282b4e18 [6/8] ANDROID: sched: allow access to
critical common code for CPU Pause
config: i386-buildonly-randconfig-r004-20211110 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
63ef0e17e28827eae53133b3467bdac7d9729318)
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
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android13-5.15
git checkout ca2177d4a03ddc4e6b64e54e0e7a176e282b4e18
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 warnings (new ones prefixed by >>):
> kernel/sched/core.c:2308:12: warning: no previous prototype for
function '__migrate_task' [-Wmissing-prototypes]
struct rq
*__migrate_task(struct rq *rq, struct rq_flags *rf,
^
kernel/sched/core.c:2308:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
struct rq *__migrate_task(struct rq *rq, struct rq_flags *rf,
^
static
kernel/sched/core.c:3459: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:3459: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
2 warnings generated.
vim +/__migrate_task +2308 kernel/sched/core.c
2298
2299 /*
2300 * Move (not current) task off this CPU, onto the destination CPU. We're doing
2301 * this because either it can't run here any more (set_cpus_allowed()
2302 * away from this CPU, or CPU going down), or because we're
2303 * attempting to rebalance this task on exec (sched_exec).
2304 *
2305 * So we race with normal scheduler movements, but that's OK, as long
2306 * as the task is no longer on this CPU.
2307 */
2308 struct rq *__migrate_task(struct rq *rq, struct rq_flags *rf,
2309 struct task_struct *p, int dest_cpu)
2310 {
2311 /* Affinity changed (again). */
2312 if (!is_cpu_allowed(p, dest_cpu))
2313 return rq;
2314
2315 update_rq_clock(rq);
2316 rq = move_queued_task(rq, rf, p, dest_cpu);
2317
2318 return rq;
2319 }
2320 EXPORT_SYMBOL_GPL(__migrate_task);
2321
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org