[ammarfaizi2-block:crng/random/jd/vdso 3/3] arch/x86/entry/vdso/vgetrandom.c:10:9: warning: no previous prototype for '__vdso_getrandom'

From: kernel test robot
Date: Thu Sep 15 2022 - 21:16:13 EST


tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/vdso
head: a3cff810520ec7bb9afb9020a1cb7945e4bdb8b2
commit: a3cff810520ec7bb9afb9020a1cb7945e4bdb8b2 [3/3] random: implement getrandom() in vDSO
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220916/202209160915.5XAA9ILS-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/a3cff810520ec7bb9afb9020a1cb7945e4bdb8b2
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/jd/vdso
git checkout a3cff810520ec7bb9afb9020a1cb7945e4bdb8b2
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vdso/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/x86/entry/vdso/vgetrandom.c:10:9: warning: no previous prototype for '__vdso_getrandom' [-Wmissing-prototypes]
10 | ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *state)
| ^~~~~~~~~~~~~~~~


vim +/__vdso_getrandom +10 arch/x86/entry/vdso/vgetrandom.c

9
> 10 ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *state)
11 {
12 return __cvdso_getrandom(buffer, len, flags, state);
13 }
14

--
0-DAY CI Kernel Test Service
https://01.org/lkp