From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:io_uring-send-full 2/3] io_uring/poll.c:689:19: sparse: sparse: incorrect type in assignment (different base types)
Date: Sun, 13 Jul 2025 23:09:29 +0800 [thread overview]
Message-ID: <202507132300.puEbPOZM-lkp@intel.com> (raw)
Hi Jens,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-send-full
head: 5c1822cfa37e51e1dbd8a1a72e5b7789051f12d7
commit: 70ba928ec6999b5d399068cf50a17afb698ed2b9 [2/3] io_uring/poll: flag request with REQ_F_POLL_ARMED if it went through poll
config: alpha-randconfig-r132-20250713 (https://download.01.org/0day-ci/archive/20250713/202507132300.puEbPOZM-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.3.0
reproduce: (https://download.01.org/0day-ci/archive/20250713/202507132300.puEbPOZM-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/202507132300.puEbPOZM-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
io_uring/poll.c:426:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int mask @@ got restricted __poll_t [usertype] mask @@
io_uring/poll.c:426:40: sparse: expected int mask
io_uring/poll.c:426:40: sparse: got restricted __poll_t [usertype] mask
io_uring/poll.c:262:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected signed int [usertype] res @@ got restricted __poll_t @@
io_uring/poll.c:262:38: sparse: expected signed int [usertype] res
io_uring/poll.c:262:38: sparse: got restricted __poll_t
io_uring/poll.c:276:21: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:284:56: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:283:66: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __poll_t [usertype] val @@ got unsigned int @@
io_uring/poll.c:283:66: sparse: expected restricted __poll_t [usertype] val
io_uring/poll.c:283:66: sparse: got unsigned int
io_uring/poll.c:283:52: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __poll_t [usertype] mask @@ got unsigned short @@
io_uring/poll.c:283:52: sparse: expected restricted __poll_t [usertype] mask
io_uring/poll.c:283:52: sparse: got unsigned short
io_uring/poll.c:286:51: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected signed int [usertype] res @@ got restricted __poll_t [usertype] mask @@
io_uring/poll.c:286:51: sparse: expected signed int [usertype] res
io_uring/poll.c:286:51: sparse: got restricted __poll_t [usertype] mask
io_uring/poll.c:287:53: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected signed int [usertype] res @@ got restricted __poll_t [usertype] mask @@
io_uring/poll.c:287:53: sparse: expected signed int [usertype] res
io_uring/poll.c:287:53: sparse: got restricted __poll_t [usertype] mask
io_uring/poll.c:337:71: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:337:65: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __poll_t [usertype] val @@ got unsigned int @@
io_uring/poll.c:337:65: sparse: expected restricted __poll_t [usertype] val
io_uring/poll.c:337:65: sparse: got unsigned int
io_uring/poll.c:614:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int mask @@ got restricted __poll_t [assigned] [usertype] mask @@
io_uring/poll.c:614:40: sparse: expected int mask
io_uring/poll.c:614:40: sparse: got restricted __poll_t [assigned] [usertype] mask
>> io_uring/poll.c:689:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long old_flags @@ got restricted io_req_flags_t [usertype] flags @@
io_uring/poll.c:689:19: sparse: expected unsigned long old_flags
io_uring/poll.c:689:19: sparse: got restricted io_req_flags_t [usertype] flags
>> io_uring/poll.c:697:35: sparse: sparse: restricted io_req_flags_t degrades to integer
io_uring/poll.c:701:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int mask @@ got restricted __poll_t [assigned] [usertype] mask @@
io_uring/poll.c:701:38: sparse: expected int mask
io_uring/poll.c:701:38: sparse: got restricted __poll_t [assigned] [usertype] mask
io_uring/poll.c:701:55: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int events @@ got restricted __poll_t [usertype] events @@
io_uring/poll.c:701:55: sparse: expected int events
io_uring/poll.c:701:55: sparse: got restricted __poll_t [usertype] events
io_uring/poll.c:708:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __poll_t [usertype] mask @@ got int @@
io_uring/poll.c:708:33: sparse: expected restricted __poll_t [usertype] mask
io_uring/poll.c:708:33: sparse: got int
io_uring/poll.c:846:24: sparse: sparse: invalid assignment: |=
io_uring/poll.c:846:24: sparse: left side has type unsigned int
io_uring/poll.c:846:24: sparse: right side has type restricted __poll_t
io_uring/poll.c:848:24: sparse: sparse: invalid assignment: |=
io_uring/poll.c:848:24: sparse: left side has type unsigned int
io_uring/poll.c:848:24: sparse: right side has type restricted __poll_t
io_uring/poll.c:850:55: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:849:29: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:849:38: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __poll_t @@ got unsigned int @@
io_uring/poll.c:849:38: sparse: expected restricted __poll_t
io_uring/poll.c:849:38: sparse: got unsigned int
io_uring/poll.c:910:40: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected signed int [usertype] res @@ got restricted __poll_t [addressable] [assigned] [usertype] result_mask @@
io_uring/poll.c:910:40: sparse: expected signed int [usertype] res
io_uring/poll.c:910:40: sparse: got restricted __poll_t [addressable] [assigned] [usertype] result_mask
io_uring/poll.c:941:38: sparse: sparse: invalid assignment: &=
io_uring/poll.c:941:38: sparse: left side has type restricted __poll_t
io_uring/poll.c:941:38: sparse: right side has type int
io_uring/poll.c:942:52: sparse: sparse: restricted __poll_t degrades to integer
io_uring/poll.c:942:38: sparse: sparse: invalid assignment: |=
io_uring/poll.c:942:38: sparse: left side has type restricted __poll_t
io_uring/poll.c:942:38: sparse: right side has type unsigned int
vim +689 io_uring/poll.c
671
672 int io_arm_apoll(struct io_kiocb *req, unsigned issue_flags, __poll_t mask)
673 {
674 struct async_poll *apoll;
675 struct io_poll_table ipt;
676 unsigned long old_flags;
677 int ret;
678
679 mask |= EPOLLET;
680 if (!io_file_can_poll(req))
681 return IO_APOLL_ABORTED;
682 if (!(req->flags & REQ_F_APOLL_MULTISHOT))
683 mask |= EPOLLONESHOT;
684
685 apoll = io_req_alloc_apoll(req, issue_flags);
686 if (!apoll)
687 return IO_APOLL_ABORTED;
688 req->flags &= ~(REQ_F_SINGLE_POLL | REQ_F_DOUBLE_POLL);
> 689 old_flags = req->flags;
690 req->flags |= REQ_F_POLLED | REQ_F_POLL_ARMED;
691 ipt.pt._qproc = io_async_queue_proc;
692
693 io_kbuf_recycle(req, issue_flags);
694
695 ret = __io_arm_poll_handler(req, &apoll->poll, &ipt, mask, issue_flags);
696 if (ret) {
> 697 if (!(old_flags & REQ_F_POLL_ARMED))
698 req->flags &= ~REQ_F_POLL_ARMED;
699 return ret > 0 ? IO_APOLL_READY : IO_APOLL_ABORTED;
700 }
701 trace_io_uring_poll_arm(req, mask, apoll->poll.events);
702 return IO_APOLL_OK;
703 }
704
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-13 15:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202507132300.puEbPOZM-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=oe-kbuild-all@lists.linux.dev \
/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.