From: kernel test robot <lkp@intel.com>
To: peili.dev@gmail.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] Reduce vdpa initialization / startup overhead for ioctl()
Date: Thu, 20 Apr 2023 16:33:13 +0800 [thread overview]
Message-ID: <202304201619.AlZrqoj4-lkp@intel.com> (raw)
In-Reply-To: <20230420052026.1883230-1-peili.dev@gmail.com>
Hi,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on mst-vhost/linux-next]
[also build test ERROR on linus/master v6.3-rc7 next-20230419]
[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/peili-dev-gmail-com/Reduce-vdpa-initialization-startup-overhead-for-ioctl/20230420-132556
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link: https://lore.kernel.org/r/20230420052026.1883230-1-peili.dev%40gmail.com
patch subject: [RFC PATCH] Reduce vdpa initialization / startup overhead for ioctl()
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20230420/202304201619.AlZrqoj4-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
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
# https://github.com/intel-lab-lkp/linux/commit/ab8e2356cbe7e460fb8d5e16d57db96737f000b7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review peili-dev-gmail-com/Reduce-vdpa-initialization-startup-overhead-for-ioctl/20230420-132556
git checkout ab8e2356cbe7e460fb8d5e16d57db96737f000b7
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304201619.AlZrqoj4-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from arch/loongarch/include/asm/elf.h:9,
from include/linux/elf.h:6,
from include/linux/module.h:19,
from drivers/vhost/vdpa.c:15:
drivers/vhost/vdpa.c: In function 'vhost_vdpa_vring_ioctl_batch':
>> arch/loongarch/include/asm/uaccess.h:47:26: error: invalid type argument of unary '*' (have 'unsigned int')
47 | const __typeof__(*(ptr)) __user *__p = (ptr); \
| ^~~~~~
drivers/vhost/vdpa.c:558:13: note: in expansion of macro 'get_user'
558 | r = get_user(num, ((struct vhost_vring_state __user *)argp)->num);
| ^~~~~~~~
>> arch/loongarch/include/asm/uaccess.h:47:48: warning: initialization of 'const int *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion]
47 | const __typeof__(*(ptr)) __user *__p = (ptr); \
| ^
drivers/vhost/vdpa.c:558:13: note: in expansion of macro 'get_user'
558 | r = get_user(num, ((struct vhost_vring_state __user *)argp)->num);
| ^~~~~~~~
drivers/vhost/vdpa.c:565:16: warning: ISO C90 forbids variable length array 'states' [-Wvla]
565 | struct vhost_vring_state states[num + 1];
| ^~~~~~~~~~~~~~~~~
drivers/vhost/vdpa.c:565:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
565 | struct vhost_vring_state states[num + 1];
| ^~~~~~
drivers/vhost/vdpa.c:553:34: warning: unused variable 's' [-Wunused-variable]
553 | struct vhost_vring_state s;
| ^
drivers/vhost/vdpa.c:552:33: warning: unused variable 'vq' [-Wunused-variable]
552 | struct vhost_virtqueue *vq;
| ^~
vim +47 arch/loongarch/include/asm/uaccess.h
be769645a2aef5 Huacai Chen 2022-05-31 26
be769645a2aef5 Huacai Chen 2022-05-31 27 /*
be769645a2aef5 Huacai Chen 2022-05-31 28 * get_user: - Get a simple variable from user space.
be769645a2aef5 Huacai Chen 2022-05-31 29 * @x: Variable to store result.
be769645a2aef5 Huacai Chen 2022-05-31 30 * @ptr: Source address, in user space.
be769645a2aef5 Huacai Chen 2022-05-31 31 *
be769645a2aef5 Huacai Chen 2022-05-31 32 * Context: User context only. This function may sleep if pagefaults are
be769645a2aef5 Huacai Chen 2022-05-31 33 * enabled.
be769645a2aef5 Huacai Chen 2022-05-31 34 *
be769645a2aef5 Huacai Chen 2022-05-31 35 * This macro copies a single simple variable from user space to kernel
be769645a2aef5 Huacai Chen 2022-05-31 36 * space. It supports simple types like char and int, but not larger
be769645a2aef5 Huacai Chen 2022-05-31 37 * data types like structures or arrays.
be769645a2aef5 Huacai Chen 2022-05-31 38 *
be769645a2aef5 Huacai Chen 2022-05-31 39 * @ptr must have pointer-to-simple-variable type, and the result of
be769645a2aef5 Huacai Chen 2022-05-31 40 * dereferencing @ptr must be assignable to @x without a cast.
be769645a2aef5 Huacai Chen 2022-05-31 41 *
be769645a2aef5 Huacai Chen 2022-05-31 42 * Returns zero on success, or -EFAULT on error.
be769645a2aef5 Huacai Chen 2022-05-31 43 * On error, the variable @x is set to zero.
be769645a2aef5 Huacai Chen 2022-05-31 44 */
be769645a2aef5 Huacai Chen 2022-05-31 45 #define get_user(x, ptr) \
be769645a2aef5 Huacai Chen 2022-05-31 46 ({ \
be769645a2aef5 Huacai Chen 2022-05-31 @47 const __typeof__(*(ptr)) __user *__p = (ptr); \
be769645a2aef5 Huacai Chen 2022-05-31 48 \
be769645a2aef5 Huacai Chen 2022-05-31 49 might_fault(); \
be769645a2aef5 Huacai Chen 2022-05-31 50 access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \
be769645a2aef5 Huacai Chen 2022-05-31 51 ((x) = 0, -EFAULT); \
be769645a2aef5 Huacai Chen 2022-05-31 52 })
be769645a2aef5 Huacai Chen 2022-05-31 53
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-04-20 8:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 5:20 [RFC PATCH] Reduce vdpa initialization / startup overhead for ioctl() peili.dev
2023-04-20 7:51 ` kernel test robot
2023-04-20 8:16 ` Jason Wang
2023-04-20 8:33 ` kernel test robot [this message]
2023-04-20 8:43 ` kernel test robot
2023-04-20 11:28 ` kernel test robot
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=202304201619.AlZrqoj4-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peili.dev@gmail.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 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.