All of lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-asm-generic:syscall-tbl-6.9 43/46] kernel/fork.c:3087:2: warning: #warning clone3() entry point is missing, please fix
@ 2024-05-12 23:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-12 23:17 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-arch

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405130707.pzKiV49b-lkp@intel.com/

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

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

only message in thread, other threads:[~2024-05-12 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12 23:17 [arnd-asm-generic:syscall-tbl-6.9 43/46] kernel/fork.c:3087:2: warning: #warning clone3() entry point is missing, please fix 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.