From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:for-6.9/io_uring 2/26] io_uring/filetable.h:66:35: sparse: sparse: restricted io_req_flags_t degrades to integer
Date: Sun, 11 Feb 2024 02:36:38 +0800 [thread overview]
Message-ID: <202402110232.mLmSk8Vy-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 for-6.9/io_uring
head: ef1186c1a875bfa8a8cbfc2a9670b14b082187a9
commit: 4bcb982cce74e18155fba0d97394ca9634e0d8f0 [2/26] io_uring: expand main struct io_kiocb flags to 64-bits
config: x86_64-randconfig-122-20240210 (https://download.01.org/0day-ci/archive/20240211/202402110232.mLmSk8Vy-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240211/202402110232.mLmSk8Vy-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/202402110232.mLmSk8Vy-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
io_uring/rsrc.c: note: in included file (through io_uring/io_uring.h):
include/linux/io_uring_types.h:341:48: sparse: sparse: array of flexible structures
io_uring/rsrc.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
io_uring/rsrc.c: note: in included file (through io_uring/io_uring.h):
>> io_uring/filetable.h:66:35: sparse: sparse: restricted io_req_flags_t degrades to integer
io_uring/rsrc.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
io_uring/rsrc.c: note: in included file (through io_uring/io_uring.h):
>> io_uring/filetable.h:66:35: sparse: sparse: restricted io_req_flags_t degrades to integer
--
io_uring/filetable.c: note: in included file (through io_uring/io_uring.h):
include/linux/io_uring_types.h:341:48: sparse: sparse: array of flexible structures
io_uring/filetable.c: note: in included file (through io_uring/io_uring.h):
>> io_uring/filetable.h:66:35: sparse: sparse: restricted io_req_flags_t degrades to integer
vim +66 io_uring/filetable.h
4bfb0c9af832a1 Christoph Hellwig 2023-06-20 61
a4ad4f748ea962 Jens Axboe 2022-05-25 62 static inline void io_fixed_file_set(struct io_fixed_file *file_slot,
a4ad4f748ea962 Jens Axboe 2022-05-25 63 struct file *file)
a4ad4f748ea962 Jens Axboe 2022-05-25 64 {
8487f083c6ff6e Christoph Hellwig 2023-06-20 65 file_slot->file_ptr = (unsigned long)file |
8487f083c6ff6e Christoph Hellwig 2023-06-20 @66 (io_file_get_flags(file) >> REQ_F_SUPPORT_NOWAIT_BIT);
a4ad4f748ea962 Jens Axboe 2022-05-25 67 }
a4ad4f748ea962 Jens Axboe 2022-05-25 68
:::::: The code at line 66 was first introduced by commit
:::::: 8487f083c6ff6e02b2ec14f22ef2b0079a1b6425 io_uring: return REQ_F_ flags from io_file_get_flags
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-02-10 18:37 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=202402110232.mLmSk8Vy-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.