tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
io_uring-worker.v2
head: 87bc511b420d365034e8b25dae8e8124ba802804
commit: 6f15c144db8df78ca868458e0c37834335ff88e7 [7/14] io-wq: fork worker threads from
original task
config: x86_64-randconfig-a003-20210215 (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 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/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.v2
git checkout 6f15c144db8df78ca868458e0c37834335ff88e7
# 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 >>):
> fs/io-wq.c:541: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:541: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 +541 fs/io-wq.c
524
525 static int task_thread(void *data, int index)
526 {
527 struct io_worker *worker = data;
528 struct io_wqe *wqe = worker->wqe;
529 struct io_wqe_acct *acct = &wqe->acct[index];
530 struct io_wq *wq = wqe->wq;
531 char buf[TASK_COMM_LEN];
532
533 sprintf(buf, "iou-wrk-%d", wq->task_pid);
534 set_task_comm(current, buf);
535
536 current->flags &= ~PF_KTHREAD;
537 current->pf_io_worker = worker;
538 worker->task = current;
539
540 raw_spin_lock_irq(¤t->pi_lock);
541 set_cpus_allowed_common(current, cpumask_of_node(wqe->node),
0);
542 current->flags |= PF_NO_SETAFFINITY;
543 raw_spin_unlock_irq(¤t->pi_lock);
544
545 raw_spin_lock_irq(&wqe->lock);
546 hlist_nulls_add_head_rcu(&worker->nulls_node, &wqe->free_list);
547 list_add_tail_rcu(&worker->all_list, &wqe->all_list);
548 worker->flags |= IO_WORKER_F_FREE;
549 if (index == IO_WQ_ACCT_BOUND)
550 worker->flags |= IO_WORKER_F_BOUND;
551 if (!acct->nr_workers && (worker->flags & IO_WORKER_F_BOUND))
552 worker->flags |= IO_WORKER_F_FIXED;
553 acct->nr_workers++;
554 raw_spin_unlock_irq(&wqe->lock);
555
556 if (index == IO_WQ_ACCT_UNBOUND)
557 atomic_inc(&wq->user->processes);
558
559 io_wqe_worker(data);
560 do_exit(0);
561 }
562
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org