* [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t
@ 2026-06-10 11:22 kernel test robot
2026-06-10 11:37 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2026-06-10 11:22 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: oe-kbuild-all
tree: git://git.infradead.org/users/hch/misc.git block-error-injection
head: 5976bb2f6894c34ac87cd38acf150423724c4628
commit: 7979d56135777d83ac77af6854484aa7a4c8c871 [3/4] block: add a str_to_blk_op helper
config: microblaze-randconfig-r113-20260610 (https://download.01.org/0day-ci/archive/20260610/202606101953.PdmBi8go-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260610/202606101953.PdmBi8go-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/202606101953.PdmBi8go-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t
vim +141 block/blk-core.c
134
135 enum req_op str_to_blk_op(const char *op)
136 {
137 int i;
138
139 for (i = 0; i < ARRAY_SIZE(blk_op_name); i++)
140 if (blk_op_name[i] && !strcmp(blk_op_name[i], op))
> 141 return (enum req_op)i;
142 return REQ_OP_LAST;
143 }
144
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t
2026-06-10 11:22 [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t kernel test robot
@ 2026-06-10 11:37 ` Christoph Hellwig
2026-06-10 11:57 ` Philip Li
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2026-06-10 11:37 UTC (permalink / raw)
To: kernel test robot; +Cc: Christoph Hellwig, oe-kbuild-all
On Wed, Jun 10, 2026 at 07:22:03PM +0800, kernel test robot wrote:
> 139 for (i = 0; i < ARRAY_SIZE(blk_op_name); i++)
> 140 if (blk_op_name[i] && !strcmp(blk_op_name[i], op))
> > 141 return (enum req_op)i;
My spare on x86 and varous cross builds is perfectly fine with it.
What sparese version is installed on the microblaze build box?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t
2026-06-10 11:37 ` Christoph Hellwig
@ 2026-06-10 11:57 ` Philip Li
2026-06-10 11:59 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Philip Li @ 2026-06-10 11:57 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: kernel test robot, oe-kbuild-all
On Wed, Jun 10, 2026 at 01:37:57PM +0200, Christoph Hellwig wrote:
> On Wed, Jun 10, 2026 at 07:22:03PM +0800, kernel test robot wrote:
> > 139 for (i = 0; i < ARRAY_SIZE(blk_op_name); i++)
> > 140 if (blk_op_name[i] && !strcmp(blk_op_name[i], op))
> > > 141 return (enum req_op)i;
>
> My spare on x86 and varous cross builds is perfectly fine with it.
> What sparese version is installed on the microblaze build box?
The version used is
sparse: v0.6.5-rc1
Thanks
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t
2026-06-10 11:57 ` Philip Li
@ 2026-06-10 11:59 ` Christoph Hellwig
0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2026-06-10 11:59 UTC (permalink / raw)
To: Philip Li; +Cc: Christoph Hellwig, kernel test robot, oe-kbuild-all
On Wed, Jun 10, 2026 at 07:57:35PM +0800, Philip Li wrote:
> On Wed, Jun 10, 2026 at 01:37:57PM +0200, Christoph Hellwig wrote:
> > On Wed, Jun 10, 2026 at 07:22:03PM +0800, kernel test robot wrote:
> > > 139 for (i = 0; i < ARRAY_SIZE(blk_op_name); i++)
> > > 140 if (blk_op_name[i] && !strcmp(blk_op_name[i], op))
> > > > 141 return (enum req_op)i;
> >
> > My spare on x86 and varous cross builds is perfectly fine with it.
> > What sparese version is installed on the microblaze build box?
>
> The version used is
>
> sparse: v0.6.5-rc1
That's pretty current. No idea why this generates a warning on
microblaze, but not elsewhere.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-10 11:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 11:22 [hch-misc:block-error-injection 3/4] block/blk-core.c:141:33: sparse: sparse: cast to restricted blk_opf_t kernel test robot
2026-06-10 11:37 ` Christoph Hellwig
2026-06-10 11:57 ` Philip Li
2026-06-10 11:59 ` Christoph Hellwig
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.