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-sendzc-provided 5/7] io_uring/io_uring.h:478:16: warning: cast to pointer from integer of different size
Date: Thu, 17 Oct 2024 02:35:50 +0800 [thread overview]
Message-ID: <202410170250.WIwBreaN-lkp@intel.com> (raw)
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
reply other threads:[~2024-10-16 18:36 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=202410170250.WIwBreaN-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.