All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2024-02-10 18:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-10 18:36 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 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

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

only message in thread, other threads:[~2024-02-10 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-10 18:36 [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 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.