From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:total_cpus 1/2] include/linux/rcutiny.h:58:9: error: implicit declaration of function 'might_sleep'
Date: Thu, 13 Nov 2025 12:52:33 +0800 [thread overview]
Message-ID: <202511131016.UXAXet0w-lkp@intel.com> (raw)
tree: https://github.com/norov/linux total_cpus
head: 57f6e7cf466e27e510bbc03cc2a5b067622f9673
commit: 3a8c8f12c46acd1541dbea31afaa96e8c4bf8177 [1/2] smp: include cpumask_types.h
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20251113/202511131016.UXAXet0w-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251113/202511131016.UXAXet0w-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511131016.UXAXet0w-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/sched.h:37,
from arch/alpha/kernel/asm-offsets.c:11:
include/linux/smp.h: In function 'on_each_cpu':
include/linux/smp.h:71:55: error: 'cpu_online_mask' undeclared (first use in this function)
71 | on_each_cpu_cond_mask(NULL, func, info, wait, cpu_online_mask);
| ^~~~~~~~~~~~~~~
include/linux/smp.h:71:55: note: each undeclared identifier is reported only once for each function it appears in
include/linux/smp.h: In function 'on_each_cpu_cond':
include/linux/smp.h:105:60: error: 'cpu_online_mask' undeclared (first use in this function)
105 | on_each_cpu_cond_mask(cond_func, func, info, wait, cpu_online_mask);
| ^~~~~~~~~~~~~~~
In file included from include/linux/rcupdate.h:291,
from include/linux/rculist.h:11,
from include/linux/sched/signal.h:5,
from include/linux/ptrace.h:7,
from arch/alpha/kernel/asm-offsets.c:12:
include/linux/rcutiny.h: In function 'cond_synchronize_rcu':
>> include/linux/rcutiny.h:58:9: error: implicit declaration of function 'might_sleep' [-Wimplicit-function-declaration]
58 | might_sleep();
| ^~~~~~~~~~~
In file included from include/linux/sched/task.h:13,
from include/linux/sched/signal.h:9:
include/linux/uaccess.h: In function '__copy_from_user':
>> include/linux/uaccess.h:115:9: error: implicit declaration of function 'might_fault' [-Wimplicit-function-declaration]
115 | might_fault();
| ^~~~~~~~~~~
In file included from include/linux/cpumask.h:11,
from include/linux/alloc_tag.h:13,
from include/linux/percpu.h:5,
from include/linux/percpu_counter.h:14,
from include/linux/sched/user.h:7,
from include/linux/cred.h:18,
from include/linux/sched/signal.h:10:
include/linux/kernel.h: At top level:
>> include/linux/kernel.h:151:20: warning: conflicting types for 'might_fault'; have 'void(void)'
151 | static inline void might_fault(void) { }
| ^~~~~~~~~~~
>> include/linux/kernel.h:151:20: error: static declaration of 'might_fault' follows non-static declaration
include/linux/uaccess.h:115:9: note: previous implicit declaration of 'might_fault' with type 'void(void)'
115 | might_fault();
| ^~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:182: arch/alpha/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1302: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/might_sleep +58 include/linux/rcutiny.h
91a967fd6934abc Paul E. McKenney 2022-07-28 55
765a3f4fed708ae Paul E. McKenney 2014-03-14 56 static inline void cond_synchronize_rcu(unsigned long oldstate)
765a3f4fed708ae Paul E. McKenney 2014-03-14 57 {
765a3f4fed708ae Paul E. McKenney 2014-03-14 @58 might_sleep();
b6fe4917ae4353b Paul E. McKenney 2022-08-04 59 }
b6fe4917ae4353b Paul E. McKenney 2022-08-04 60
:::::: The code at line 58 was first introduced by commit
:::::: 765a3f4fed708ae429ee095914a7897acb3a65bd rcu: Provide grace-period piggybacking API
:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-13 4:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202511131016.UXAXet0w-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.