lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208111537.zfHCewaw-lkp@intel.com>
Date:   Thu, 11 Aug 2022 15:57:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yury Norov <yury.norov@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: include/linux/random.h:25:46: error: 'latent_entropy' undeclared;
 did you mean 'add_latent_entropy'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ffcf9c5700e49c0aee42dcba9a12ba21338e8136
commit: 36d4b36b69590fed99356a4426c940a253a93800 lib/nodemask: inline next_node_in() and node_random()
date:   10 days ago
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220811/202208111537.zfHCewaw-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/torvalds/linux.git/commit/?id=36d4b36b69590fed99356a4426c940a253a93800
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 36d4b36b69590fed99356a4426c940a253a93800
        # 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@...el.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

38addce8b600ca3 Emese Revfy        2016-06-20  21  
7e756f423af808b Vasily Gorbik      2019-05-07  22  #if defined(LATENT_ENTROPY_PLUGIN) && !defined(__CHECKER__)
38addce8b600ca3 Emese Revfy        2016-06-20  23  static inline void add_latent_entropy(void)
38addce8b600ca3 Emese Revfy        2016-06-20  24  {
2f14062bb14b0fc Jason A. Donenfeld 2022-05-05 @25  	add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
38addce8b600ca3 Emese Revfy        2016-06-20  26  }
38addce8b600ca3 Emese Revfy        2016-06-20  27  #else
38addce8b600ca3 Emese Revfy        2016-06-20  28  static inline void add_latent_entropy(void) { }
38addce8b600ca3 Emese Revfy        2016-06-20  29  #endif
38addce8b600ca3 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@...c4.com>
:::::: CC: Jason A. Donenfeld <Jason@...c4.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ