* [ammarfaizi2-block:crng/random/jd/vdso 3/3] drivers/char/random.c:164:42: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
@ 2022-09-20 11:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-20 11:09 UTC (permalink / raw)
To: Jason A. Donenfeld
Cc: llvm, kbuild-all, Ammar Faizi, GNU/Weeb Mailing List,
linux-kernel
tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/vdso
head: a7b31acb923dbd25e7bf030ca209f131c31f5288
commit: a7b31acb923dbd25e7bf030ca209f131c31f5288 [3/3] random: implement getrandom() in vDSO
config: arm64-buildonly-randconfig-r005-20220919 (https://download.01.org/0day-ci/archive/20220920/[email protected]/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/a7b31acb923dbd25e7bf030ca209f131c31f5288
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/jd/vdso
git checkout a7b31acb923dbd25e7bf030ca209f131c31f5288
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/char/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
>> drivers/char/random.c:164:42: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data);
^
int
drivers/char/random.c:164:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data);
^
int
2 errors generated.
vim +/int +164 drivers/char/random.c
146
147 #define warn_unseeded_randomness() \
148 if (IS_ENABLED(CONFIG_WARN_ALL_UNSEEDED_RANDOM) && !crng_ready()) \
149 printk_deferred(KERN_NOTICE "random: %s called from %pS with crng_init=%d\n", \
150 __func__, (void *)_RET_IP_, crng_init)
151
152
153
154 /********************************************************************
155 *
156 * VDSO support helpers.
157 *
158 * The actual vDSO function is defined over in lib/vdso/getrandom.c,
159 * but this section contains the kernel-mode helpers to support that.
160 *
161 ********************************************************************/
162
163 /* The shared data page. */
> 164 DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data);
165
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-20 11:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-20 11:09 [ammarfaizi2-block:crng/random/jd/vdso 3/3] drivers/char/random.c:164:42: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox