* [axboe-block:for-6.9/io_uring 7/8] io_uring/net.c:657:34: error: too many arguments to function call, expected single argument 'req', have 2 arguments
@ 2024-01-29 11:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-29 11:11 UTC (permalink / raw)
To: Jens Axboe; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-6.9/io_uring
head: 57c7dda62e7e44cc6e3d89488dcaf9a0f491339c
commit: bc525bf2233d3f5c1f6845686a318d5d4086b229 [7/8] io_uring/net: use io_poll_multishot_retry() to avoid extra receive
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20240129/202401291912.0MoiJI2y-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240129/202401291912.0MoiJI2y-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/202401291912.0MoiJI2y-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from io_uring/net.c:13:
In file included from io_uring/io_uring.h:6:
In file included from include/linux/resume_user_mode.h:8:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from io_uring/net.c:13:
In file included from io_uring/io_uring.h:6:
In file included from include/linux/resume_user_mode.h:8:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from io_uring/net.c:13:
In file included from io_uring/io_uring.h:6:
In file included from include/linux/resume_user_mode.h:8:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
692 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
700 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
708 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
717 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
726 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
735 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
>> io_uring/net.c:657:34: error: too many arguments to function call, expected single argument 'req', have 2 arguments
657 | io_poll_multishot_retry(req, issue_flags);
| ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
io_uring/poll.h:31:20: note: 'io_poll_multishot_retry' declared here
31 | static inline void io_poll_multishot_retry(struct io_kiocb *req)
| ^ ~~~~~~~~~~~~~~~~~~~~
12 warnings and 1 error generated.
vim +/req +657 io_uring/net.c
626
627 /*
628 * Finishes io_recv and io_recvmsg.
629 *
630 * Returns true if it is actually finished, or false if it should run
631 * again (for multishot).
632 */
633 static inline bool io_recv_finish(struct io_kiocb *req, int *ret,
634 struct msghdr *msg, bool mshot_finished,
635 unsigned issue_flags)
636 {
637 unsigned int cflags;
638
639 cflags = io_put_kbuf(req, issue_flags);
640 if (msg->msg_inq && msg->msg_inq != -1)
641 cflags |= IORING_CQE_F_SOCK_NONEMPTY;
642
643 if (!(req->flags & REQ_F_APOLL_MULTISHOT)) {
644 io_req_set_res(req, *ret, cflags);
645 *ret = IOU_OK;
646 return true;
647 }
648
649 if (!mshot_finished) {
650 if (io_fill_cqe_req_aux(req, issue_flags & IO_URING_F_COMPLETE_DEFER,
651 *ret, cflags | IORING_CQE_F_MORE)) {
652 io_recv_prep_retry(req);
653 /* Known not-empty, loop again */
654 if (cflags & IORING_CQE_F_SOCK_NONEMPTY)
655 return false;
656 if (issue_flags & IO_URING_F_MULTISHOT) {
> 657 io_poll_multishot_retry(req, issue_flags);
658 *ret = IOU_ISSUE_SKIP_COMPLETE;
659 } else {
660 *ret = -EAGAIN;
661 }
662 return true;
663 }
664 /* Otherwise stop multishot but use the current result. */
665 }
666
667 io_req_set_res(req, *ret, cflags);
668
669 if (issue_flags & IO_URING_F_MULTISHOT)
670 *ret = IOU_STOP_MULTISHOT;
671 else
672 *ret = IOU_OK;
673 return true;
674 }
675
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-29 11:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 11:11 [axboe-block:for-6.9/io_uring 7/8] io_uring/net.c:657:34: error: too many arguments to function call, expected single argument 'req', have 2 arguments kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox