[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112220658.XCmoVSe5-lkp@intel.com>
Date: Wed, 22 Dec 2021 06:26:32 +0800
From: kernel test robot <lkp@...el.com>
To: Kanchan Joshi <joshi.k@...sung.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Jens Axboe <axboe@...nel.dk>, Anuj Gupta <anuj20.g@...sung.com>
Subject: [axboe-block:nvme-passthru-wip.2 15/23] include/linux/io_uring.h:60:
multiple definition of `io_uring_cmd_import_fixed';
kernel/fork.o:include/linux/io_uring.h:60: first defined here
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git nvme-passthru-wip.2
head: 7567defdb3c6a81e4114a03ddf3d6c158df81a76
commit: bc18161c9b80cf2d647710257f9716ee6c66fee4 [15/23] io_uring: add flag and helper for fixed-buffer uring-cmd
config: x86_64-randconfig-a002-20211220 (https://download.01.org/0day-ci/archive/20211222/202112220658.XCmoVSe5-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=bc18161c9b80cf2d647710257f9716ee6c66fee4
git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags axboe-block nvme-passthru-wip.2
git checkout bc18161c9b80cf2d647710257f9716ee6c66fee4
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from fs/exec.c:66:
>> include/linux/io_uring.h:58:5: warning: no previous prototype for 'io_uring_cmd_import_fixed' [-Wmissing-prototypes]
58 | int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
ld: kernel/exit.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: fs/exec.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: block/fops.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/core.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/ioctl.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/trace.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/zns.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/fault_inject.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/fabrics.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/host/fc.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: drivers/nvme/target/fcloop.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: net/socket.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: net/ipv4/tcp.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: net/ipv4/raw.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: net/ipv4/udp.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
ld: net/unix/scm.o: in function `io_uring_cmd_import_fixed':
>> include/linux/io_uring.h:60: multiple definition of `io_uring_cmd_import_fixed'; kernel/fork.o:include/linux/io_uring.h:60: first defined here
--
In file included from kernel/exit.c:65:
>> include/linux/io_uring.h:58:5: warning: no previous prototype for 'io_uring_cmd_import_fixed' [-Wmissing-prototypes]
58 | int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/exit.c:1817:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
1817 | __weak void abort(void)
| ^~~~~
vim +60 include/linux/io_uring.h
34
35 static inline void io_uring_files_cancel(void)
36 {
37 if (current->io_uring)
38 __io_uring_cancel(false);
39 }
40 static inline void io_uring_task_cancel(void)
41 {
42 if (current->io_uring)
43 __io_uring_cancel(true);
44 }
45 static inline void io_uring_free(struct task_struct *tsk)
46 {
47 if (tsk->io_uring)
48 __io_uring_free(tsk);
49 }
50 #else
51 static inline void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret)
52 {
53 }
54 static inline void io_uring_cmd_complete_in_task(struct io_uring_cmd *ioucmd,
55 void (*driver_cb)(struct io_uring_cmd *))
56 {
57 }
> 58 int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
59 int rw, struct iov_iter *iter, void *ioucmd)
> 60 {
61 return -1;
62 }
63 static inline struct sock *io_uring_get_socket(struct file *file)
64 {
65 return NULL;
66 }
67 static inline void io_uring_task_cancel(void)
68 {
69 }
70 static inline void io_uring_files_cancel(void)
71 {
72 }
73 static inline void io_uring_free(struct task_struct *tsk)
74 {
75 }
76 #endif
77
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists