All of lore.kernel.org
 help / color / mirror / Atom feed
* [koverstreet-bcachefs:bcachefs-testing 19/101] fs/bcachefs/util/util.c:807:9: sparse: sparse: restricted blk_opf_t degrades to integer
@ 2026-05-16  2:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-16  2:08 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all

tree:   https://github.com/koverstreet/bcachefs bcachefs-testing
head:   ca944a61e079450f82be88c91e349638c75cf4b6
commit: 6caf75dbc37a5d4876a4b96f48e86a24c66c84fe [19/101] bcachefs: Improve bch2_bio_to_text()
config: sh-randconfig-r123-20260514 (https://download.01.org/0day-ci/archive/20260516/202605161026.uTfuDuF7-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605161026.uTfuDuF7-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/202605161026.uTfuDuF7-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> fs/bcachefs/util/util.c:807:9: sparse: sparse: restricted blk_opf_t degrades to integer
   fs/bcachefs/util/util.c:808:9: sparse: sparse: restricted blk_opf_t degrades to integer

vim +807 fs/bcachefs/util/util.c

   794	
   795	void bch2_bio_to_text(struct printbuf *out, struct bio *bio)
   796	{
   797		if (!out->nr_tabstops)
   798			printbuf_tabstop_push(out, 24);
   799	
   800		prt_printf(out, "bi_bdev:\t");
   801		if (bio->bi_bdev)
   802			prt_bdevname(out, bio->bi_bdev);
   803		else
   804			prt_str(out, "(null|");
   805		prt_newline(out);
   806	
 > 807		prt_printf(out, "bi_opf:\t%s ", bch2_request_op_strs[bio_op(bio)]);
   808		prt_bitflags(out, bch2_request_flag_strs, bio->bi_opf >> REQ_OP_BITS);
   809		prt_newline(out);
   810	
   811		prt_str(out, "bi_flags:\t");
   812		prt_bitflags(out, bch2_bio_flag_strs, bio->bi_flags);
   813		prt_newline(out);
   814	
   815		prt_printf(out, "bi_status:\t%u\n", bio->bi_status);
   816	
   817		prt_printf(out, "bi_iter.bi_sector\t%llu\n",	(u64) bio->bi_iter.bi_sector);
   818		prt_printf(out, "bi_iter.bi_size\t%u\n",	bio->bi_iter.bi_size);
   819		prt_printf(out, "bi_iter.bi_idx\t%u\n",		bio->bi_iter.bi_idx);
   820		prt_printf(out, "bi_iter.bi_bvec_done\t%u\n",	bio->bi_iter.bi_bvec_done);
   821	
   822		prt_printf(out, "bi_remaining:\t%u\n",		atomic_read(&bio->__bi_remaining));
   823		prt_printf(out, "bi_end_io:\t%ps\n",		bio->bi_end_io);
   824	
   825		prt_printf(out, "bi_vcnt\t%u\n",		bio->bi_vcnt);
   826		prt_printf(out, "bi_max_vecs\t%u\n",		bio->bi_max_vecs);
   827	}
   828	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [koverstreet-bcachefs:bcachefs-testing 19/101] fs/bcachefs/util/util.c:807:9: sparse: sparse: restricted blk_opf_t degrades to integer
@ 2026-09-16 10:25 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-09-16 10:25 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all

tree:   https://github.com/koverstreet/bcachefs bcachefs-testing
head:   ca944a61e079450f82be88c91e349638c75cf4b6
commit: 6caf75dbc37a5d4876a4b96f48e86a24c66c84fe [19/101] bcachefs: Improve bch2_bio_to_text()
config: openrisc-randconfig-r112-20260915 (https://download.01.org/0day-ci/archive/20260916/202609161837.pgkwJSHR-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260916/202609161837.pgkwJSHR-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/202609161837.pgkwJSHR-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> fs/bcachefs/util/util.c:807:9: sparse: sparse: restricted blk_opf_t degrades to integer
   fs/bcachefs/util/util.c:808:9: sparse: sparse: restricted blk_opf_t degrades to integer

vim +807 fs/bcachefs/util/util.c

   794	
   795	void bch2_bio_to_text(struct printbuf *out, struct bio *bio)
   796	{
   797		if (!out->nr_tabstops)
   798			printbuf_tabstop_push(out, 24);
   799	
   800		prt_printf(out, "bi_bdev:\t");
   801		if (bio->bi_bdev)
   802			prt_bdevname(out, bio->bi_bdev);
   803		else
   804			prt_str(out, "(null|");
   805		prt_newline(out);
   806	
 > 807		prt_printf(out, "bi_opf:\t%s ", bch2_request_op_strs[bio_op(bio)]);
   808		prt_bitflags(out, bch2_request_flag_strs, bio->bi_opf >> REQ_OP_BITS);
   809		prt_newline(out);
   810	
   811		prt_str(out, "bi_flags:\t");
   812		prt_bitflags(out, bch2_bio_flag_strs, bio->bi_flags);
   813		prt_newline(out);
   814	
   815		prt_printf(out, "bi_status:\t%u\n", bio->bi_status);
   816	
   817		prt_printf(out, "bi_iter.bi_sector\t%llu\n",	(u64) bio->bi_iter.bi_sector);
   818		prt_printf(out, "bi_iter.bi_size\t%u\n",	bio->bi_iter.bi_size);
   819		prt_printf(out, "bi_iter.bi_idx\t%u\n",		bio->bi_iter.bi_idx);
   820		prt_printf(out, "bi_iter.bi_bvec_done\t%u\n",	bio->bi_iter.bi_bvec_done);
   821	
   822		prt_printf(out, "bi_remaining:\t%u\n",		atomic_read(&bio->__bi_remaining));
   823		prt_printf(out, "bi_end_io:\t%ps\n",		bio->bi_end_io);
   824	
   825		prt_printf(out, "bi_vcnt\t%u\n",		bio->bi_vcnt);
   826		prt_printf(out, "bi_max_vecs\t%u\n",		bio->bi_max_vecs);
   827	}
   828	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-16 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 10:25 [koverstreet-bcachefs:bcachefs-testing 19/101] fs/bcachefs/util/util.c:807:9: sparse: sparse: restricted blk_opf_t degrades to integer kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-16  2:08 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.