All of lore.kernel.org
 help / color / mirror / Atom feed
* [block:io_uring-worker 10/17] fs/io-wq.c:499:2: error: implicit declaration of function 'set_cpus_allowed_common'; did you mean
@ 2021-02-16  5:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16  5:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2974 bytes --]

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: x86_64-randconfig-s022-20210216 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-215-g0fb77bb6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=276f31457f375639fd79c9eaf975593e750cd7f2
        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
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/io-wq.c: In function 'task_thread':
>> fs/io-wq.c:499:2: error: implicit declaration of function 'set_cpus_allowed_common'; did you mean 'set_cpus_allowed_ptr'? [-Werror=implicit-function-declaration]
     499 |  set_cpus_allowed_common(current, cpumask_of_node(wqe->node), 0);
         |  ^~~~~~~~~~~~~~~~~~~~~~~
         |  set_cpus_allowed_ptr
   cc1: some warnings being treated as errors


vim +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(&current->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(&current->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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37821 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-16  5:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16  5:07 [block:io_uring-worker 10/17] fs/io-wq.c:499:2: error: implicit declaration of function 'set_cpus_allowed_common'; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.