* arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for function 'microwatt_get_random_darn'
@ 2021-07-23 8:25 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-23 8:25 UTC (permalink / raw
To: Paul Mackerras
Cc: clang-built-linux, kbuild-all, linux-kernel, Michael Ellerman,
Nicholas Piggin, Segher Boessenkool
[-- Attachment #1: Type: text/plain, Size: 2343 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8baef6386baaefb776bdd09b5c7630cf057c51c6
commit: c25769fddaec13509b6cdc7ad17458f239c4cee7 powerpc/microwatt: Add support for hardware random number generator
date: 5 weeks ago
config: powerpc64-randconfig-r033-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9625ca5b602616b2f5584e8a49ba93c52c141e40)
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/torvalds/linux.git/commit/?id=c25769fddaec13509b6cdc7ad17458f239c4cee7
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c25769fddaec13509b6cdc7ad17458f239c4cee7
# 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@intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for function 'microwatt_get_random_darn' [-Werror,-Wmissing-prototypes]
int microwatt_get_random_darn(unsigned long *v)
^
arch/powerpc/platforms/microwatt/rng.c:17:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int microwatt_get_random_darn(unsigned long *v)
^
static
1 error generated.
vim +/microwatt_get_random_darn +17 arch/powerpc/platforms/microwatt/rng.c
16
> 17 int microwatt_get_random_darn(unsigned long *v)
18 {
19 unsigned long val;
20
21 /* Using DARN with L=1 - 64-bit conditioned random number */
22 asm volatile(PPC_DARN(%0, 1) : "=r"(val));
23
24 if (val == DARN_ERR)
25 return 0;
26
27 *v = val;
28
29 return 1;
30 }
31
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33411 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for function 'microwatt_get_random_darn'
@ 2021-07-23 8:25 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-23 8:25 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2400 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8baef6386baaefb776bdd09b5c7630cf057c51c6
commit: c25769fddaec13509b6cdc7ad17458f239c4cee7 powerpc/microwatt: Add support for hardware random number generator
date: 5 weeks ago
config: powerpc64-randconfig-r033-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9625ca5b602616b2f5584e8a49ba93c52c141e40)
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/torvalds/linux.git/commit/?id=c25769fddaec13509b6cdc7ad17458f239c4cee7
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c25769fddaec13509b6cdc7ad17458f239c4cee7
# 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@intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for function 'microwatt_get_random_darn' [-Werror,-Wmissing-prototypes]
int microwatt_get_random_darn(unsigned long *v)
^
arch/powerpc/platforms/microwatt/rng.c:17:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int microwatt_get_random_darn(unsigned long *v)
^
static
1 error generated.
vim +/microwatt_get_random_darn +17 arch/powerpc/platforms/microwatt/rng.c
16
> 17 int microwatt_get_random_darn(unsigned long *v)
18 {
19 unsigned long val;
20
21 /* Using DARN with L=1 - 64-bit conditioned random number */
22 asm volatile(PPC_DARN(%0, 1) : "=r"(val));
23
24 if (val == DARN_ERR)
25 return 0;
26
27 *v = val;
28
29 return 1;
30 }
31
---
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: 33411 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-23 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-23 8:25 arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for function 'microwatt_get_random_darn' kernel test robot
2021-07-23 8:25 ` 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.