linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 12802/13542] include/linux/random.h:25:46: error: 'latent_entropy' undeclared; did you mean 'add_latent_entropy'?
@ 2022-07-30  7:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-30  7:14 UTC (permalink / raw)
  To: Yury Norov; +Cc: kbuild-all, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
commit: 9f0b715d001153c4002b39f2e1acdf9183e3735b [12802/13542] lib/nodemask: inline next_node_in() and node_random()
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220730/202207301511.wBj7xvRd-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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=9f0b715d001153c4002b39f2e1acdf9183e3735b
        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 9f0b715d001153c4002b39f2e1acdf9183e3735b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/nodemask.h:97,
                    from include/linux/mmzone.h:17,
                    from include/linux/gfp.h:7,
                    from include/linux/radix-tree.h:12,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/pci.h:35,
                    from arch/powerpc/kernel/prom_init.c:24:
   include/linux/random.h: In function 'add_latent_entropy':
>> include/linux/random.h:25:46: error: 'latent_entropy' undeclared (first use in this function); did you mean 'add_latent_entropy'?
      25 |         add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
         |                                              ^~~~~~~~~~~~~~
         |                                              add_latent_entropy
   include/linux/random.h:25:46: note: each undeclared identifier is reported only once for each function it appears in


vim +25 include/linux/random.h

38addce8b600ca Emese Revfy        2016-06-20  21  
7e756f423af808 Vasily Gorbik      2019-05-07  22  #if defined(LATENT_ENTROPY_PLUGIN) && !defined(__CHECKER__)
38addce8b600ca Emese Revfy        2016-06-20  23  static inline void add_latent_entropy(void)
38addce8b600ca Emese Revfy        2016-06-20  24  {
2f14062bb14b0f Jason A. Donenfeld 2022-05-05 @25  	add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
38addce8b600ca Emese Revfy        2016-06-20  26  }
38addce8b600ca Emese Revfy        2016-06-20  27  #else
38addce8b600ca Emese Revfy        2016-06-20  28  static inline void add_latent_entropy(void) { }
38addce8b600ca Emese Revfy        2016-06-20  29  #endif
38addce8b600ca Emese Revfy        2016-06-20  30  

:::::: The code at line 25 was first introduced by commit
:::::: 2f14062bb14b0fcfcc21e6dc7d5b5c0d25966164 random: handle latent entropy and command line from random_init()

:::::: TO: Jason A. Donenfeld <Jason@zx2c4.com>
:::::: CC: Jason A. Donenfeld <Jason@zx2c4.com>

-- 
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-07-30  7:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-30  7:14 [linux-next:master 12802/13542] include/linux/random.h:25:46: error: 'latent_entropy' undeclared; did you mean 'add_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