lkml.org 
[lkml]   [2022]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ammarfaizi2-block:crng/random/jd/vmid-poll 61/61] drivers/char/random.c:1182:17: error: implicit declaration of function 'proc_sys_poll_notify'; did you mean 'proc_sys_poll_event'?
tree:   https://github.com/ammarfaizi2/linux-block crng/random/jd/vmid-poll
head: 28f8622d20d2c090711dbb8bee93bd00a8bc0cd6
commit: 28f8622d20d2c090711dbb8bee93bd00a8bc0cd6 [61/61] random: add vm_id sysctl for polling
config: ia64-randconfig-r016-20220310 (https://download.01.org/0day-ci/archive/20220312/202203121041.K4onshgj-lkp@intel.com/config)
compiler: ia64-linux-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://github.com/ammarfaizi2/linux-block/commit/28f8622d20d2c090711dbb8bee93bd00a8bc0cd6
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/jd/vmid-poll
git checkout 28f8622d20d2c090711dbb8bee93bd00a8bc0cd6
# 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=ia64 SHELL=/bin/bash drivers/char/

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 >>):

In file included from arch/ia64/include/asm/pgtable.h:153,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/poll.h:10,
from drivers/char/random.c:38:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/char/random.c: In function 'add_vmfork_randomness':
>> drivers/char/random.c:1182:17: error: implicit declaration of function 'proc_sys_poll_notify'; did you mean 'proc_sys_poll_event'? [-Werror=implicit-function-declaration]
1182 | proc_sys_poll_notify(&sysctl_vmid_poll);
| ^~~~~~~~~~~~~~~~~~~~
| proc_sys_poll_event
cc1: some warnings being treated as errors


vim +1182 drivers/char/random.c

1167
1168 /*
1169 * Handle a new unique VM ID, which is unique, not secret, so we
1170 * don't credit it, but we do immediately force a reseed after so
1171 * that it's used by the crng posthaste.
1172 */
1173 void add_vmfork_randomness(const void *unique_vm_id, size_t size)
1174 {
1175 add_device_randomness(unique_vm_id, size);
1176 if (crng_ready()) {
1177 crng_reseed(true);
1178 pr_notice("crng reseeded due to virtual machine fork\n");
1179 }
1180 blocking_notifier_call_chain(&vmfork_chain, 0, NULL);
1181 if (IS_ENABLED(CONFIG_SYSCTL))
> 1182 proc_sys_poll_notify(&sysctl_vmid_poll);
1183 }
1184 #if IS_MODULE(CONFIG_VMGENID)
1185 EXPORT_SYMBOL_GPL(add_vmfork_randomness);
1186 #endif
1187

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-03-12 03:49    [W:0.026 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site