All of lore.kernel.org
 help / color / mirror / Atom feed
* [axboe-block:io_uring-send-full 2/3] io_uring/poll.c:689:19: sparse: sparse: incorrect type in assignment (different base types)
@ 2025-07-13 15:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-13 15:09 UTC (permalink / raw)
  To: Jens Axboe; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-13 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-13 15:09 [axboe-block:io_uring-send-full 2/3] io_uring/poll.c:689:19: sparse: sparse: incorrect type in assignment (different base types) 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.