linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
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 12729/13576] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
Date: Sat, 19 Mar 2022 17:35:22 +0800	[thread overview]
Message-ID: <202203191758.OK7Yng81-lkp@intel.com> (raw)

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


                 reply	other threads:[~2022-03-19  9:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202203191758.OK7Yng81-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