All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-arch@vger.kernel.org
Subject: [arnd-asm-generic:syscall-tbl-6.9 43/46] kernel/fork.c:3087:2: warning: #warning clone3() entry point is missing, please fix
Date: Mon, 13 May 2024 07:17:27 +0800	[thread overview]
Message-ID: <202405130707.pzKiV49b-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-05-12 23:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202405130707.pzKiV49b-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.