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: powerpc64-randconfig-r031-20201012 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
a324d8f964bf421fa7d8b882b0f64ead28c4149c)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom.git/comm...
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=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
a ^= this_cpu_read(net_rand_noise);
^
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:321:23: note: expanded from macro
'__pcpu_size_call_return'
case 1: pscr_ret__ = stem##1(variable); break; \
^
<scratch space>:195:1: note: expanded from here
this_cpu_read_1
^
include/asm-generic/percpu.h:320:31: note: expanded from macro
'this_cpu_read_1'
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:128:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:321:23: note: expanded from macro
'__pcpu_size_call_return'
case 1: pscr_ret__ = stem##1(variable); break; \
^
<scratch space>:195:1: note: expanded from here
this_cpu_read_1
^
include/asm-generic/percpu.h:320:31: note: expanded from macro
'this_cpu_read_1'
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:130:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_restore(__flags); \
^
include/linux/prandom.h:66:7: note: did you mean 'raw_local_irq_save'?
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:321:23: note: expanded from macro
'__pcpu_size_call_return'
case 1: pscr_ret__ = stem##1(variable); break; \
^
<scratch space>:195:1: note: expanded from here
this_cpu_read_1
^
include/asm-generic/percpu.h:320:31: note: expanded from macro
'this_cpu_read_1'
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:130:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_restore(__flags); \
^
include/linux/prandom.h:66:7: note: 'raw_local_irq_save' declared here
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:321:23: note: expanded from macro
'__pcpu_size_call_return'
case 1: pscr_ret__ = stem##1(variable); break; \
^
<scratch space>:195:1: note: expanded from here
this_cpu_read_1
^
include/asm-generic/percpu.h:320:31: note: expanded from macro
'this_cpu_read_1'
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:128:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
a ^= this_cpu_read(net_rand_noise);
^
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:322:23: note: expanded from macro
'__pcpu_size_call_return'
case 2: pscr_ret__ = stem##2(variable); break; \
^
<scratch space>:199:1: note: expanded from here
this_cpu_read_2
^
include/asm-generic/percpu.h:323:31: note: expanded from macro
'this_cpu_read_2'
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:128:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:322:23: note: expanded from macro
'__pcpu_size_call_return'
case 2: pscr_ret__ = stem##2(variable); break; \
^
<scratch space>:199:1: note: expanded from here
this_cpu_read_2
^
include/asm-generic/percpu.h:323:31: note: expanded from macro
'this_cpu_read_2'
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:130:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:323:23: note: expanded from macro
'__pcpu_size_call_return'
case 4: pscr_ret__ = stem##4(variable); break; \
^
<scratch space>:203:1: note: expanded from here
this_cpu_read_4
^
include/asm-generic/percpu.h:326:31: note: expanded from macro
'this_cpu_read_4'
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:128:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:323:23: note: expanded from macro
'__pcpu_size_call_return'
case 4: pscr_ret__ = stem##4(variable); break; \
^
<scratch space>:203:1: note: expanded from here
this_cpu_read_4
^
include/asm-generic/percpu.h:326:31: note: expanded from macro
'this_cpu_read_4'
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:130:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:324:23: note: expanded from macro
'__pcpu_size_call_return'
case 8: pscr_ret__ = stem##8(variable); break; \
^
<scratch space>:207:1: note: expanded from here
this_cpu_read_8
^
include/asm-generic/percpu.h:329:31: note: expanded from macro
'this_cpu_read_8'
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:128:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:66:7: error: implicit declaration of
function 'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^
include/linux/percpu-defs.h:324:23: note: expanded from macro
'__pcpu_size_call_return'
case 8: pscr_ret__ = stem##8(variable); break; \
^
<scratch space>:207:1: note: expanded from here
this_cpu_read_8
^
include/asm-generic/percpu.h:329:31: note: expanded from macro
'this_cpu_read_8'
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^
include/asm-generic/percpu.h:140:11: note: expanded from macro
'this_cpu_generic_read'
__ret = __this_cpu_generic_read_noirq(pcp); \
^
include/asm-generic/percpu.h:130:2: note: expanded from macro
'__this_cpu_generic_read_noirq'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
this_cpu_write(net_rand_noise, d);
^
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:377:11: note: expanded from macro
'__pcpu_size_call'
case 1: stem##1(variable, __VA_ARGS__);break; \
^
<scratch space>:211:1: note: expanded from here
this_cpu_write_1
^
include/asm-generic/percpu.h:333:36: note: expanded from macro
'this_cpu_write_1'
#define this_cpu_write_1(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:147:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:377:11: note: expanded from macro
'__pcpu_size_call'
case 1: stem##1(variable, __VA_ARGS__);break; \
^
<scratch space>:211:1: note: expanded from here
this_cpu_write_1
^
include/asm-generic/percpu.h:333:36: note: expanded from macro
'this_cpu_write_1'
#define this_cpu_write_1(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:149:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:378:11: note: expanded from macro
'__pcpu_size_call'
case 2: stem##2(variable, __VA_ARGS__);break; \
^
<scratch space>:212:1: note: expanded from here
this_cpu_write_2
^
include/asm-generic/percpu.h:336:36: note: expanded from macro
'this_cpu_write_2'
#define this_cpu_write_2(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:147:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:378:11: note: expanded from macro
'__pcpu_size_call'
case 2: stem##2(variable, __VA_ARGS__);break; \
^
<scratch space>:212:1: note: expanded from here
this_cpu_write_2
^
include/asm-generic/percpu.h:336:36: note: expanded from macro
'this_cpu_write_2'
#define this_cpu_write_2(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:149:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:379:11: note: expanded from macro
'__pcpu_size_call'
case 4: stem##4(variable, __VA_ARGS__);break; \
^
<scratch space>:213:1: note: expanded from here
this_cpu_write_4
^
include/asm-generic/percpu.h:339:36: note: expanded from macro
'this_cpu_write_4'
#define this_cpu_write_4(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:147:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:379:11: note: expanded from macro
'__pcpu_size_call'
case 4: stem##4(variable, __VA_ARGS__);break; \
^
<scratch space>:213:1: note: expanded from here
this_cpu_write_4
^
include/asm-generic/percpu.h:339:36: note: expanded from macro
'this_cpu_write_4'
#define this_cpu_write_4(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:149:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_save' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:380:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^
<scratch space>:214:1: note: expanded from here
this_cpu_write_8
^
include/asm-generic/percpu.h:342:36: note: expanded from macro
'this_cpu_write_8'
#define this_cpu_write_8(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:147:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_save(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
include/linux/prandom.h:68:2: error: implicit declaration of function
'raw_local_irq_restore' [-Werror,-Wimplicit-function-declaration]
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:380:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^
<scratch space>:214:1: note: expanded from here
this_cpu_write_8
^
include/asm-generic/percpu.h:342:36: note: expanded from macro
'this_cpu_write_8'
#define this_cpu_write_8(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:149:2: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_restore(__flags); \
^
In file included from lib/random32.c:39:
In file included from include/linux/random.h:118:
> include/linux/prandom.h:68:2: warning: variable '__flags'
is uninitialized when used here [-Wuninitialized]
this_cpu_write(net_rand_noise, d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:380:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:214:1: note: expanded from here
this_cpu_write_8
^
include/asm-generic/percpu.h:342:36: note: expanded from macro
'this_cpu_write_8'
#define this_cpu_write_8(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:147:21: note: expanded from macro
'this_cpu_generic_to_op'
raw_local_irq_save(__flags); \
^~~~~~~
include/linux/prandom.h:68:2: note: variable '__flags' is declared here
include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
^
include/linux/percpu-defs.h:380:11: note: expanded from macro
'__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^
<scratch space>:214:1: note: expanded from here
this_cpu_write_8
^
include/asm-generic/percpu.h:342:36: note: expanded from macro
'this_cpu_write_8'
#define this_cpu_write_8(pcp, val) this_cpu_generic_to_op(pcp, val, =)
^
include/asm-generic/percpu.h:146:2: note: expanded from macro
'this_cpu_generic_to_op'
unsigned long __flags; \
^
1 warning and 16 errors generated.
vim +/raw_local_irq_save +66 include/linux/prandom.h
58
59 static inline void prandom_u32_add_noise(unsigned long a, unsigned long b,
60 unsigned long c, unsigned long d)
61 {
62 /*
63 * This is not used cryptographically; it's just
64 * a convenient 4-word hash function. (3 xor, 2 add, 2 rol)
65 */
66 a ^= this_cpu_read(net_rand_noise);
67 PRND_SIPROUND(a, b, c, d);
68 this_cpu_write(net_rand_noise, d);
69 }
70
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org