All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
@ 2022-04-02 20:46 kernel test robot
  2022-04-05 18:47   ` Miguel Ojeda
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-04-02 20:46 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

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
  2022-04-02 20:46 [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy' kernel test robot
@ 2022-04-05 18:47   ` Miguel Ojeda
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2022-04-05 18:47 UTC (permalink / raw)
  To: kernel test robot
  Cc: Miguel Ojeda, 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

Hi LKP,

On Sat, Apr 2, 2022 at 10:47 PM kernel test robot <lkp@intel.com> wrote:
>
> >> 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

Thanks for the report -- fixed.

Cheers,
Miguel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy'
@ 2022-04-05 18:47   ` Miguel Ojeda
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2022-04-05 18:47 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

Hi LKP,

On Sat, Apr 2, 2022 at 10:47 PM kernel test robot <lkp@intel.com> wrote:
>
> >> 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

Thanks for the report -- fixed.

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-05 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 20:46 [linux-next:master 12379/15002] include/linux/random.h:29:39: error: use of undeclared identifier 'latent_entropy' kernel test robot
2022-04-05 18:47 ` Miguel Ojeda
2022-04-05 18:47   ` Miguel Ojeda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.