* [linux-next:master 12729/13576] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
@ 2022-03-19 9:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-19 9:35 UTC (permalink / raw)
To: Miguel Ojeda
Cc: kbuild-all, Linux Memory Management List, Alex Gaynor,
Finn Behrens, Adam Bratschi-Kaye, Wedson Almeida Filho,
Michael Ellerman, Sven Van Asbroeck, Gary Guo,
Boris-Chengbiao Zhou, Boqun Feng, Douglas Su, Dariusz Sosnowski,
Antonio Terceiro, Daniel Xu, Miguel Cano
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6d72dda014a4753974eb08950089ddf71fec4f60
commit: e2e7cf27b58760b39038bcbf8e8f512dc2f9bf67 [12729/13576] Kbuild: add Rust support
config: arm-randconfig-r031-20220319 (https://download.01.org/0day-ci/archive/20220319/202203191758.OK7Yng81-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=e2e7cf27b58760b39038bcbf8e8f512dc2f9bf67
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e2e7cf27b58760b39038bcbf8e8f512dc2f9bf67
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm prepare
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 >>):
error: unknown argument: '-mapcs'
error: unknown argument: '-mno-sched-prolog'
>> include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
include/linux/random.h:30:17: error: use of undeclared identifier 'latent_entropy'
error: unknown argument: '-mapcs', err: true
error: unknown argument: '-mno-sched-prolog', err: true
>> include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy', err: true
include/linux/random.h:30:17: error: use of undeclared identifier 'latent_entropy', err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.59.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[2]: *** [rust/Makefile:287: rust/bindings_generated.rs] Error 1
make[2]: *** Deleting file 'rust/bindings_generated.rs'
error: unknown argument: '-mapcs', err: true
error: unknown argument: '-mno-sched-prolog', err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /opt/cross/rustc-1.59.0-bindgen-0.56.0/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.56.0/src/main.rs:54:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[2]: *** [rust/Makefile:301: rust/bindings_helpers_generated.rs] Error 1
make[2]: *** Deleting file 'rust/bindings_helpers_generated.rs'
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1285: prepare] Error 2
make: *** [Makefile:226: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for TEGRA20_APB_DMA
Depends on DMADEVICES && (ARCH_TEGRA || COMPILE_TEST
Selected by
- SOC_TEGRA_FUSE && ARCH_TEGRA && ARCH_TEGRA_2x_SOC
vim +/latent_entropy +29 include/linux/random.h
38addce8b600ca Emese Revfy 2016-06-20 25
7e756f423af808 Vasily Gorbik 2019-05-07 26 #if defined(LATENT_ENTROPY_PLUGIN) && !defined(__CHECKER__)
38addce8b600ca Emese Revfy 2016-06-20 27 static inline void add_latent_entropy(void)
38addce8b600ca Emese Revfy 2016-06-20 28 {
38addce8b600ca Emese Revfy 2016-06-20 @29 add_device_randomness((const void *)&latent_entropy,
38addce8b600ca Emese Revfy 2016-06-20 30 sizeof(latent_entropy));
38addce8b600ca Emese Revfy 2016-06-20 31 }
38addce8b600ca Emese Revfy 2016-06-20 32 #else
38addce8b600ca Emese Revfy 2016-06-20 33 static inline void add_latent_entropy(void) {}
38addce8b600ca Emese Revfy 2016-06-20 34 #endif
38addce8b600ca Emese Revfy 2016-06-20 35
:::::: The code at line 29 was first introduced by commit
:::::: 38addce8b600ca335dc86fa3d48c890f1c6fa1f4 gcc-plugins: Add latent_entropy plugin
:::::: TO: Emese Revfy <re.emese@gmail.com>
:::::: CC: Kees Cook <keescook@chromium.org>
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-19 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-19 9:35 [linux-next:master 12729/13576] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy' 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