* [wtarreau-prandom:prandom-5.10-v3 2/2] include/asm-generic/percpu.h:128:2: error: implicit declaration of function 'raw_local_irq_save'
@ 2020-10-13 0:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-13 0:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5352 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom.git prandom-5.10-v3
head: 3486a21c7e5bafbdbc0f7ea5d40f3dad39022bf4
commit: 3486a21c7e5bafbdbc0f7ea5d40f3dad39022bf4 [2/2] random32: add noise from network and scheduling activity
config: arc-defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom.git/commit/?id=3486a21c7e5bafbdbc0f7ea5d40f3dad39022bf4
git remote add wtarreau-prandom https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom.git
git fetch --no-tags wtarreau-prandom prandom-5.10-v3
git checkout 3486a21c7e5bafbdbc0f7ea5d40f3dad39022bf4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
In file included from ./arch/arc/include/generated/asm/percpu.h:1,
from include/linux/percpu.h:13,
from include/linux/prandom.h:12,
from include/linux/random.h:118,
from include/linux/net.h:18,
from fs/nfs/mount_clnt.c:13:
include/linux/prandom.h: In function 'prandom_u32_add_noise':
>> include/asm-generic/percpu.h:128:2: error: implicit declaration of function 'raw_local_irq_save' [-Werror=implicit-function-declaration]
128 | raw_local_irq_save(__flags); \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:140:11: note: in expansion of macro '__this_cpu_generic_read_noirq'
140 | __ret = __this_cpu_generic_read_noirq(pcp); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:320:31: note: in expansion of macro 'this_cpu_generic_read'
320 | #define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:321:23: note: in expansion of macro 'this_cpu_read_1'
321 | case 1: pscr_ret__ = stem##1(variable); break; \
| ^~~~
include/linux/percpu-defs.h:507:29: note: in expansion of macro '__pcpu_size_call_return'
507 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/prandom.h:66:7: note: in expansion of macro 'this_cpu_read'
66 | a ^= this_cpu_read(net_rand_noise);
| ^~~~~~~~~~~~~
>> include/asm-generic/percpu.h:130:2: error: implicit declaration of function 'raw_local_irq_restore' [-Werror=implicit-function-declaration]
130 | raw_local_irq_restore(__flags); \
| ^~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:140:11: note: in expansion of macro '__this_cpu_generic_read_noirq'
140 | __ret = __this_cpu_generic_read_noirq(pcp); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:320:31: note: in expansion of macro 'this_cpu_generic_read'
320 | #define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:321:23: note: in expansion of macro 'this_cpu_read_1'
321 | case 1: pscr_ret__ = stem##1(variable); break; \
| ^~~~
include/linux/percpu-defs.h:507:29: note: in expansion of macro '__pcpu_size_call_return'
507 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/prandom.h:66:7: note: in expansion of macro 'this_cpu_read'
66 | a ^= this_cpu_read(net_rand_noise);
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/raw_local_irq_save +128 include/asm-generic/percpu.h
9c28278a24c01c0 Tejun Heo 2014-06-17 123
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 124 #define __this_cpu_generic_read_noirq(pcp) \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 125 ({ \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 126 typeof(pcp) __ret; \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 127 unsigned long __flags; \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 @128 raw_local_irq_save(__flags); \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 129 __ret = raw_cpu_generic_read(pcp); \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 @130 raw_local_irq_restore(__flags); \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 131 __ret; \
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 132 })
e88d62cd4b2f0b1 Mark Rutland 2017-09-26 133
:::::: The code at line 128 was first introduced by commit
:::::: e88d62cd4b2f0b1ae55e9008e79c2794b1fc914d percpu: make this_cpu_generic_read() atomic w.r.t. interrupts
:::::: TO: Mark Rutland <mark.rutland@arm.com>
:::::: CC: Tejun Heo <tj@kernel.org>
---
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: 9373 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-13 0:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 0:05 [wtarreau-prandom:prandom-5.10-v3 2/2] include/asm-generic/percpu.h:128:2: error: implicit declaration of function 'raw_local_irq_save' 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.