[linux-next:master 11199/11507] init/initramfs_test.c:580:22: error: implicit declaration of function '__override_init_fs'
kernel test robot <[email protected]> Sat, 01 Aug 2026 04:39:52 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 415606a7be939835db9b0d6b711887586646346d commit: da46f0e1053c98355c2d7803ff1cc46617ca81bf [11199/11507] initramfs_test: use test init/exit hooks to override init fs config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: alpha-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): init/initramfs_test.c: In function 'initramfs_test_init': >> init/initramfs_test.c:580:22: error: implicit declaration of function '__override_init_fs' [-Wimplicit-function-declaration] 580 | test->priv = __override_init_fs(); | ^~~~~~~~~~~~~~~~~~ >> init/initramfs_test.c:580:20: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 580 | test->priv = __override_init_fs(); | ^ init/initramfs_test.c: In function 'initramfs_test_exit': >> init/initramfs_test.c:586:9: error: implicit declaration of function '__revert_init_fs' [-Wimplicit-function-declaration] 586 | __revert_init_fs(test->priv); | ^~~~~~~~~~~~~~~~ vim +/__override_init_fs +580 init/initramfs_test.c 576 577 /* Tests run in a nullfs kthread; always use the init fs for path resolution. */ 578 static int __init initramfs_test_init(struct kunit *test) 579 { > 580 test->priv = __override_init_fs(); 581 return 0; 582 } 583 584 static void __init initramfs_test_exit(struct kunit *test) 585 { > 586 __revert_init_fs(test->priv); 587 } 588 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki