public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Steffen Eiden <seiden@linux.ibm.com>,
	linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
	Ingo Franzki <ifranzki@linux.ibm.com>,
	Harald Freudenberger <freude@linux.ibm.com>,
	Christoph Schlameuss <schlameuss@linux.ibm.com>,
	Janosch Frank <frankja@linux.ibm.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>
Subject: Re: [PATCH v3 5/6] s390/uvdevice: Add List Secrets Ext IOCTL
Date: Wed, 16 Oct 2024 11:13:49 +0800	[thread overview]
Message-ID: <202410161057.pV9QsHAq-lkp@intel.com> (raw)
In-Reply-To: <20241015112859.3069210-6-seiden@linux.ibm.com>

Hi Steffen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on kvms390/next]
[also build test WARNING on s390/features linus/master v6.12-rc3 next-20241015]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Steffen-Eiden/s390-boot-uv-c-Use-a-constant-for-more-data-rc/20241015-193108
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git next
patch link:    https://lore.kernel.org/r/20241015112859.3069210-6-seiden%40linux.ibm.com
patch subject: [PATCH v3 5/6] s390/uvdevice: Add List Secrets Ext IOCTL
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20241016/202410161057.pV9QsHAq-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241016/202410161057.pV9QsHAq-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/202410161057.pV9QsHAq-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/s390/char/uvdevice.c:302: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
    * The actual list(_ext) IOCTL.


vim +302 drivers/s390/char/uvdevice.c

   300	
   301	/**
 > 302	 * The actual list(_ext) IOCTL.
   303	 * If list_ext is true, the first two bytes of the user buffer set the starting
   304	 * index of the list-UVC.
   305	 */
   306	static int list_secrets(struct uvio_ioctl_cb *uv_ioctl, bool list_ext)
   307	{
   308		void __user *user_buf_arg = (void __user *)uv_ioctl->argument_addr;
   309		u16 __user *user_index = (u16 __user *)uv_ioctl->argument_addr;
   310		u16 start_idx = 0;
   311		u8 *secrets;
   312		int ret = 0;
   313	
   314		BUILD_BUG_ON(UVIO_LIST_SECRETS_LEN != PAGE_SIZE);
   315		if (uv_ioctl->argument_len != UVIO_LIST_SECRETS_LEN)
   316			return -EINVAL;
   317		/* The extended call accepts an u16 index as input */
   318		if (list_ext && get_user(start_idx, user_index))
   319			return -EFAULT;
   320		secrets = (u8 *)get_zeroed_page(GFP_KERNEL);
   321		if (!secrets)
   322			return -ENOMEM;
   323		uv_list_secrets(secrets, start_idx, &uv_ioctl->uv_rc, &uv_ioctl->uv_rrc);
   324		if (copy_to_user(user_buf_arg, secrets, UVIO_LIST_SECRETS_LEN))
   325			ret = -EFAULT;
   326	
   327		free_pages((unsigned long)secrets, 0);
   328		return ret;
   329	}
   330	

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

  parent reply	other threads:[~2024-10-16  3:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 11:28 [PATCH v3 0/6] s390/uv: Retrieve Secrets Ultravisor Call support Steffen Eiden
2024-10-15 11:28 ` [PATCH v3 1/6] s390/boot/uv.c: Use a constant for more-data rc Steffen Eiden
2024-10-15 11:28 ` [PATCH v3 2/6] s390/uv: Retrieve UV secrets support Steffen Eiden
2024-10-15 11:28 ` [PATCH v3 3/6] s390/uvdevice: Add Retrieve Secret IOCTL Steffen Eiden
2024-10-15 11:28 ` [PATCH v3 4/6] s390/uvdevice: Increase indent in IOCTL definitions Steffen Eiden
2024-10-15 11:28 ` [PATCH v3 5/6] s390/uvdevice: Add List Secrets Ext IOCTL Steffen Eiden
2024-10-15 12:01   ` Heiko Carstens
2024-10-16  9:06     ` Steffen Eiden
2024-10-16  3:13   ` kernel test robot [this message]
2024-10-15 11:28 ` [PATCH v3 6/6] s390/uv: Retrieve UV secrets sysfs support Steffen Eiden
2024-10-15 11:37 ` [PATCH v3 0/6] s390/uv: Retrieve Secrets Ultravisor Call support Steffen Eiden

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=202410161057.pV9QsHAq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frankja@linux.ibm.com \
    --cc=freude@linux.ibm.com \
    --cc=ifranzki@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=schlameuss@linux.ibm.com \
    --cc=seiden@linux.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox