From: kernel test robot <lkp@intel.com>
To: Miguel Ojeda <ojeda@kernel.org>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Gaynor <alex.gaynor@gmail.com>, Finn Behrens <me@kloenk.de>,
Adam Bratschi-Kaye <ark.email@gmail.com>,
Wedson Almeida Filho <wedsonaf@google.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Sven Van Asbroeck <thesven73@gmail.com>,
Gary Guo <gary@garyguo.net>,
Boris-Chengbiao Zhou <bobo1239@web.de>,
Boqun Feng <boqun.feng@gmail.com>,
Douglas Su <d0u9.su@outlook.com>,
Dariusz Sosnowski <dsosnowski@dsosnowski.pl>,
Antonio Terceiro <antonio.terceiro@linaro.org>,
Daniel Xu <dxu@dxuuu.xyz>, Miguel Cano <macanroj@gmail.com>
Subject: [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
Date: Sun, 3 Apr 2022 04:46:47 +0800 [thread overview]
Message-ID: <202204030402.Ps8X1oHd-lkp@intel.com> (raw)
Hi Miguel,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e5071887cd2296a7704dbcd10c1cedf0f11cdbd5
commit: e2e7cf27b58760b39038bcbf8e8f512dc2f9bf67 [12379/15002] Kbuild: add Rust support
config: powerpc64-randconfig-s031-20220403 (https://download.01.org/0day-ci/archive/20220403/202204030402.Ps8X1oHd-lkp@intel.com/config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# 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 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc 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 >>):
>> 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'
>> 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'
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.
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://01.org/lkp
next reply other threads:[~2022-04-02 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-02 20:46 kernel test robot [this message]
2022-04-05 18:47 ` Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204030402.Ps8X1oHd-lkp@intel.com \
--to=lkp@intel.com \
--cc=alex.gaynor@gmail.com \
--cc=antonio.terceiro@linaro.org \
--cc=ark.email@gmail.com \
--cc=bobo1239@web.de \
--cc=boqun.feng@gmail.com \
--cc=d0u9.su@outlook.com \
--cc=dsosnowski@dsosnowski.pl \
--cc=dxu@dxuuu.xyz \
--cc=gary@garyguo.net \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=macanroj@gmail.com \
--cc=me@kloenk.de \
--cc=mpe@ellerman.id.au \
--cc=ojeda@kernel.org \
--cc=thesven73@gmail.com \
--cc=wedsonaf@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox