All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:sched/wip-freezer 2/3] init/do_mounts_initrd.c:86:47: error: use of undeclared identifier 'UMH_WAIT_FREEZABLE'
@ 2021-06-14 17:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-14 17:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3541 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-freezer
head:   9ddb4cc740408e85babad7482f50e1b4d2490759
commit: 6b4cee97b0cda639bfd51c2ad7d6b1f6fe617013 [2/3] freezer,umh: Clean up freezer/initrd interaction
config: x86_64-randconfig-a001-20210614 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=6b4cee97b0cda639bfd51c2ad7d6b1f6fe617013
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wip-freezer
        git checkout 6b4cee97b0cda639bfd51c2ad7d6b1f6fe617013
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

>> init/do_mounts_initrd.c:86:47: error: use of undeclared identifier 'UMH_WAIT_FREEZABLE'
           call_usermodehelper_exec(info, UMH_WAIT_PROC|UMH_WAIT_FREEZABLE);
                                                        ^
   1 error generated.


vim +/UMH_WAIT_FREEZABLE +86 init/do_mounts_initrd.c

    65	
    66	static void __init handle_initrd(void)
    67	{
    68		struct subprocess_info *info;
    69		static char *argv[] = { "linuxrc", NULL, };
    70		extern char *envp_init[];
    71		int error;
    72	
    73		pr_warn("using deprecated initrd support, will be removed in 2021.\n");
    74	
    75		real_root_dev = new_encode_dev(ROOT_DEV);
    76		create_dev("/dev/root.old", Root_RAM0);
    77		/* mount initrd on rootfs' /root */
    78		mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY);
    79		init_mkdir("/old", 0700);
    80		init_chdir("/old");
    81	
    82		info = call_usermodehelper_setup("/linuxrc", argv, envp_init,
    83						 GFP_KERNEL, init_linuxrc, NULL, NULL);
    84		if (!info)
    85			return;
  > 86		call_usermodehelper_exec(info, UMH_WAIT_PROC|UMH_WAIT_FREEZABLE);
    87	
    88		/* move initrd to rootfs' /old */
    89		init_mount("..", ".", NULL, MS_MOVE, NULL);
    90		/* switch root and cwd back to / of rootfs */
    91		init_chroot("..");
    92	
    93		if (new_decode_dev(real_root_dev) == Root_RAM0) {
    94			init_chdir("/old");
    95			return;
    96		}
    97	
    98		init_chdir("/");
    99		ROOT_DEV = new_decode_dev(real_root_dev);
   100		mount_root();
   101	
   102		printk(KERN_NOTICE "Trying to move old root to /initrd ... ");
   103		error = init_mount("/old", "/root/initrd", NULL, MS_MOVE, NULL);
   104		if (!error)
   105			printk("okay\n");
   106		else {
   107			if (error == -ENOENT)
   108				printk("/initrd does not exist. Ignored.\n");
   109			else
   110				printk("failed\n");
   111			printk(KERN_NOTICE "Unmounting old root\n");
   112			init_umount("/old", MNT_DETACH);
   113		}
   114	}
   115	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36379 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-14 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 17:56 [peterz-queue:sched/wip-freezer 2/3] init/do_mounts_initrd.c:86:47: error: use of undeclared identifier 'UMH_WAIT_FREEZABLE' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.