[arnd-asm-generic:syscall-tbl-6.9 43/46] kernel/fork.c:3087:2: warning: #warning clone3() entry point is missing, please fix

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git syscall-tbl-6.9
head:   e0d7a2fe9b74052a280531e773ebaba59e2d523f
commit: 6bca3b47be851b7e05f0117d8022a0daabc84c72 [43/46] clone3: drop __ARCH_WANT_SYS_CLONE3 macro
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20240513/202405130707.pzKiV49b-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240513/202405130707.pzKiV49b-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405130707.pzKiV49b-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   kernel/fork.c: In function '__do_sys_clone3':
>> kernel/fork.c:3087:2: warning: #warning clone3() entry point is missing, please fix [-Wcpp]
    3087 | #warning clone3() entry point is missing, please fix
         |  ^~~~~~~


vim +3087 kernel/fork.c

  3067	
  3068	/**
  3069	 * sys_clone3 - create a new process with specific properties
  3070	 * @uargs: argument structure
  3071	 * @size:  size of @uargs
  3072	 *
  3073	 * clone3() is the extensible successor to clone()/clone2().
  3074	 * It takes a struct as argument that is versioned by its size.
  3075	 *
  3076	 * Return: On success, a positive PID for the child process.
  3077	 *         On error, a negative errno number.
  3078	 */
  3079	SYSCALL_DEFINE2(clone3, struct clone_args __user *, uargs, size_t, size)
  3080	{
  3081		int err;
  3082	
  3083		struct kernel_clone_args kargs;
  3084		pid_t set_tid[MAX_PID_NS_LEVEL];
  3085	
  3086	#ifdef __ARCH_BROKEN_SYS_CLONE3
> 3087	#warning clone3() entry point is missing, please fix
  3088		return -ENOSYS;
  3089	#endif
  3090	
  3091		kargs.set_tid = set_tid;
  3092	
  3093		err = copy_clone_args_from_user(&kargs, uargs, size);
  3094		if (err)
  3095			return err;
  3096	
  3097		if (!clone3_args_valid(&kargs))
  3098			return -EINVAL;
  3099	
  3100		return kernel_clone(&kargs);
  3101	}
  3102	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux