From: kernel test robot <lkp@intel.com>
To: Sidong Yang <sidong.yang@furiosa.ai>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH 1/2] io_uring: cmd: introduce io_uring_cmd_import_fixed_vec
Date: Wed, 12 Mar 2025 17:59:38 +0800 [thread overview]
Message-ID: <202503121708.ZioDSAXU-lkp@intel.com> (raw)
In-Reply-To: <20250311114053.216359-2-sidong.yang@furiosa.ai>
Hi Sidong,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20250307]
[also build test WARNING on v6.14-rc6]
[cannot apply to kdave/for-next linus/master v6.14-rc6 v6.14-rc5 v6.14-rc4]
[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/Sidong-Yang/io_uring-cmd-introduce-io_uring_cmd_import_fixed_vec/20250311-194620
base: next-20250307
patch link: https://lore.kernel.org/r/20250311114053.216359-2-sidong.yang%40furiosa.ai
patch subject: [RFC PATCH 1/2] io_uring: cmd: introduce io_uring_cmd_import_fixed_vec
config: i386-buildonly-randconfig-003-20250312 (https://download.01.org/0day-ci/archive/20250312/202503121708.ZioDSAXU-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250312/202503121708.ZioDSAXU-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/202503121708.ZioDSAXU-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from io_uring/uring_cmd.c:5:
include/linux/io_uring/cmd.h:51:42: warning: 'struct iou_vec' declared inside parameter list will not be visible outside of this definition or declaration
51 | struct iou_vec *iou_vec, bool compat,
| ^~~~~~~
>> io_uring/uring_cmd.c:262:42: warning: 'struct iou_vec' declared inside parameter list will not be visible outside of this definition or declaration
262 | struct iou_vec *iou_vec, bool compat,
| ^~~~~~~
io_uring/uring_cmd.c:258:5: error: conflicting types for 'io_uring_cmd_import_fixed_vec'; have 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, bool, unsigned int)' {aka 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, _Bool, unsigned int)'}
258 | int io_uring_cmd_import_fixed_vec(const struct iovec __user *uiovec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/io_uring/cmd.h:47:5: note: previous declaration of 'io_uring_cmd_import_fixed_vec' with type 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, bool, unsigned int)' {aka 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, _Bool, unsigned int)'}
47 | int io_uring_cmd_import_fixed_vec(const struct iovec __user *uiovec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
io_uring/uring_cmd.c: In function 'io_uring_cmd_import_fixed_vec':
io_uring/uring_cmd.c:273:15: error: implicit declaration of function 'io_vec_realloc' [-Werror=implicit-function-declaration]
273 | ret = io_vec_realloc(iou_vec, nr_segs);
| ^~~~~~~~~~~~~~
In file included from arch/x86/include/asm/string.h:3,
from include/linux/string.h:65,
from arch/x86/include/asm/page_32.h:18,
from arch/x86/include/asm/page.h:14,
from arch/x86/include/asm/thread_info.h:12,
from include/linux/thread_info.h:60,
from include/linux/spinlock.h:60,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:7,
from include/uapi/linux/io_uring.h:11,
from include/linux/io_uring/cmd.h:5:
io_uring/uring_cmd.c:278:23: error: invalid use of undefined type 'struct iou_vec'
278 | memcpy(iou_vec->iovec, iov, sizeof(*iov) * nr_segs);
| ^~
arch/x86/include/asm/string_32.h:150:42: note: in definition of macro 'memcpy'
150 | #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
| ^
io_uring/uring_cmd.c:281:15: error: implicit declaration of function 'io_import_reg_vec'; did you mean 'io_import_reg_buf'? [-Werror=implicit-function-declaration]
281 | ret = io_import_reg_vec(rw, iter, req, iou_vec, iou_vec->nr, 0,
| ^~~~~~~~~~~~~~~~~
| io_import_reg_buf
io_uring/uring_cmd.c:281:64: error: invalid use of undefined type 'struct iou_vec'
281 | ret = io_import_reg_vec(rw, iter, req, iou_vec, iou_vec->nr, 0,
| ^~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:18,
from io_uring/uring_cmd.c:2:
io_uring/uring_cmd.c: At top level:
io_uring/uring_cmd.c:285:19: error: conflicting types for 'io_uring_cmd_import_fixed_vec'; have 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, bool, unsigned int)' {aka 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, _Bool, unsigned int)'}
285 | EXPORT_SYMBOL_GPL(io_uring_cmd_import_fixed_vec);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/export.h:70:28: note: in definition of macro '__EXPORT_SYMBOL'
70 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:84:41: note: in expansion of macro '_EXPORT_SYMBOL'
84 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
| ^~~~~~~~~~~~~~
io_uring/uring_cmd.c:285:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
285 | EXPORT_SYMBOL_GPL(io_uring_cmd_import_fixed_vec);
| ^~~~~~~~~~~~~~~~~
include/linux/io_uring/cmd.h:47:5: note: previous declaration of 'io_uring_cmd_import_fixed_vec' with type 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, bool, unsigned int)' {aka 'int(const struct iovec *, long unsigned int, int, struct iov_iter *, struct io_uring_cmd *, struct iou_vec *, _Bool, unsigned int)'}
47 | int io_uring_cmd_import_fixed_vec(const struct iovec __user *uiovec,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +262 io_uring/uring_cmd.c
257
258 int io_uring_cmd_import_fixed_vec(const struct iovec __user *uiovec,
259 unsigned long nr_segs, int rw,
260 struct iov_iter *iter,
261 struct io_uring_cmd *ioucmd,
> 262 struct iou_vec *iou_vec, bool compat,
263 unsigned int issue_flags)
264 {
265 struct io_kiocb *req = cmd_to_io_kiocb(ioucmd);
266 struct iovec *iov;
267 int ret;
268
269 iov = iovec_from_user(uiovec, nr_segs, 0, NULL, compat);
270 if (IS_ERR(iov))
271 return PTR_ERR(iov);
272
273 ret = io_vec_realloc(iou_vec, nr_segs);
274 if (ret) {
275 kfree(iov);
276 return ret;
277 }
278 memcpy(iou_vec->iovec, iov, sizeof(*iov) * nr_segs);
279 kfree(iov);
280
281 ret = io_import_reg_vec(rw, iter, req, iou_vec, iou_vec->nr, 0,
282 issue_flags);
283 return ret;
284 }
285 EXPORT_SYMBOL_GPL(io_uring_cmd_import_fixed_vec);
286
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-12 10:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 11:40 [RFC PATCH 0/2] introduce io_uring_cmd_import_fixed_vec Sidong Yang
2025-03-11 11:40 ` [RFC PATCH 1/2] io_uring: cmd: " Sidong Yang
2025-03-11 13:08 ` Pavel Begunkov
2025-03-12 3:08 ` Sidong Yang
2025-03-12 9:59 ` kernel test robot [this message]
2025-03-12 10:10 ` kernel test robot
2025-03-11 11:40 ` [RFC PATCH 2/2] btrfs: ioctl: use registered buffer for IORING_URING_CMD_FIXED Sidong Yang
2025-03-11 12:55 ` Pavel Begunkov
2025-03-12 3:05 ` Sidong Yang
2025-03-12 11:11 ` 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=202503121708.ZioDSAXU-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sidong.yang@furiosa.ai \
/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.