* [axboe-block:io_uring-sendzc-provided 5/7] io_uring/io_uring.h:478:16: warning: cast to pointer from integer of different size
@ 2024-10-16 18:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-16 18:35 UTC (permalink / raw)
To: Jens Axboe; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-sendzc-provided
head: 7bc33ee65a67c3434c7b4c75de90444bede2fd26
commit: f7f8888ac3a68a5c0a10b596b62757780149a0ce [5/7] io_uring/cancel: use LSB bit of req->imu for cancel_seq_set
config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20241017/202410170250.WIwBreaN-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241017/202410170250.WIwBreaN-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/202410170250.WIwBreaN-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from io_uring/io_uring.c:82:
io_uring/io_uring.h: In function 'req_imu':
>> io_uring/io_uring.h:478:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
478 | return (struct io_mapped_ubuf *) ((unsigned long) req->imu & ~1ULL);
| ^
vim +478 io_uring/io_uring.h
473
474 static inline struct io_mapped_ubuf *req_imu(struct io_kiocb *req)
475 {
476 BUILD_BUG_ON(offsetof(struct io_kiocb, imu) !=
477 offsetof(struct io_kiocb, cancel_ptr));
> 478 return (struct io_mapped_ubuf *) ((unsigned long) req->imu & ~1ULL);
--
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-10-16 18:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 18:35 [axboe-block:io_uring-sendzc-provided 5/7] io_uring/io_uring.h:478:16: warning: cast to pointer from integer of different size 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.