All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2021-12-21 22:26 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-21 22:26 UTC (permalink / raw)
  To: Kanchan Joshi; +Cc: kbuild-all, linux-kernel, Jens Axboe, Anuj Gupta

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@intel.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2021-12-21 22:26 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-21 22:26 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6744 bytes --]

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(a)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@intel.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(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-21 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 22:26 [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 kernel test robot
2021-12-21 22:26 ` kernel test robot

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.