[linux-next:master 12802/13542] include/linux/random.h:25:46: error: 'latent_entropy' undeclared; did you mean 'add_latent_entropy'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx>

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@xxxxxxxxx>
:::::: CC: Jason A. Donenfeld <Jason@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux