tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
io_uring-worker
head: 57ea9801528571943b503bbe9b70a9504793d90e
commit: 276f31457f375639fd79c9eaf975593e750cd7f2 [10/17] io-wq: fork worker threads from
original task
config: powerpc-randconfig-r023-20210216 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block io_uring-worker
git checkout 276f31457f375639fd79c9eaf975593e750cd7f2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 >>):
> fs/io-wq.c:499:2: error: implicit declaration of function
'set_cpus_allowed_common' [-Werror,-Wimplicit-function-declaration]
set_cpus_allowed_common(current, cpumask_of_node(wqe->node), 0);
^
fs/io-wq.c:499:2: note: did you mean 'set_cpus_allowed_ptr'?
include/linux/sched.h:1683:19: note: 'set_cpus_allowed_ptr' declared here
static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask
*new_mask)
^
1 error generated.
vim +/set_cpus_allowed_common +499 fs/io-wq.c
485
486 static int task_thread(void *data, int index)
487 {
488 struct io_worker *worker = data;
489 struct io_wqe *wqe = worker->wqe;
490 struct io_wqe_acct *acct = &wqe->acct[index];
491 struct io_wq *wq = wqe->wq;
492 unsigned long flags;
493
494 current->flags &= ~PF_KTHREAD;
495 current->pf_io_worker = worker;
496 worker->task = current;
497
498 raw_spin_lock_irqsave(¤t->pi_lock, flags);
499 set_cpus_allowed_common(current, cpumask_of_node(wqe->node),
0);
500 current->flags |= PF_NO_SETAFFINITY;
501 raw_spin_unlock_irqrestore(¤t->pi_lock, flags);
502
503 raw_spin_lock_irq(&wqe->lock);
504 hlist_nulls_add_head_rcu(&worker->nulls_node, &wqe->free_list);
505 list_add_tail_rcu(&worker->all_list, &wqe->all_list);
506 worker->flags |= IO_WORKER_F_FREE;
507 if (index == IO_WQ_ACCT_BOUND)
508 worker->flags |= IO_WORKER_F_BOUND;
509 if (!acct->nr_workers && (worker->flags & IO_WORKER_F_BOUND))
510 worker->flags |= IO_WORKER_F_FIXED;
511 acct->nr_workers++;
512 raw_spin_unlock_irq(&wqe->lock);
513
514 if (index == IO_WQ_ACCT_UNBOUND)
515 atomic_inc(&wq->user->processes);
516
517 io_wqe_worker(data);
518 do_exit(0);
519 }
520
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org