All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
@ 2026-12-03 12:07 kernel test robot
  2026-12-04  2:43 ` Lachlan Michael
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2026-12-03 12:07 UTC (permalink / raw)
  To: Lachlan Michael; +Cc: oe-kbuild-all, Sakari Ailus, Jai Luthra

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   799dd936553182df5770dde7f38d94c8337df75a
commit: 4c636c9355ad5514bd9fa7808b38d5f4e4756901 [5015/14229] media: i2c: Add Sony IMX908 image sensor driver
config: hexagon-randconfig-r2309-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203130615.auFEmXkI-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203130615.auFEmXkI-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/20261203130615.auFEmXkI-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
   drivers/media/i2c/imx908.c:1143:9: sparse:   also defined here

vim +1142 drivers/media/i2c/imx908.c

  1140	
  1141	static const struct of_device_id imx908_of_ids[] = {
> 1142		{ .compatible = "sony,imx908" },
  1143		{ /* sentinel */ }
  1144	};
  1145	MODULE_DEVICE_TABLE(of, imx908_of_ids);
  1146	

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

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

* Re: [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
  2026-12-03 12:07 [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice kernel test robot
@ 2026-12-04  2:43 ` Lachlan Michael
  2026-12-04  9:15   ` Sakari Ailus
  0 siblings, 1 reply; 4+ messages in thread
From: Lachlan Michael @ 2026-12-04  2:43 UTC (permalink / raw)
  To: kernel test robot; +Cc: oe-kbuild-all, Sakari Ailus, Jai Luthra

Hi All,

On 12/3/2026 9:07 PM, kernel test robot wrote:
> sparse warnings: (new ones prefixed by >>)
>>> drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
>     drivers/media/i2c/imx908.c:1143:9: sparse:   also defined here
> 
> vim +1142 drivers/media/i2c/imx908.c
> 
>    1140	
>    1141	static const struct of_device_id imx908_of_ids[] = {
>> 1142		{ .compatible = "sony,imx908" },
>    1143		{ /* sentinel */ }
>    1144	};
>    1145	MODULE_DEVICE_TABLE(of, imx908_of_ids);
>    1146	
> 

I believe this is a sparse false positive. Lines 1142 and 1143 are two 
separate array elements (the match entry and the sentinel) of a standard 
OF match table, with no duplicated designators.

Please let me know if I'm missing something.

Best Regards,

Lachlan

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

* Re: [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
  2026-12-04  2:43 ` Lachlan Michael
@ 2026-12-04  9:15   ` Sakari Ailus
  2026-12-04 12:51     ` Philip Li
  0 siblings, 1 reply; 4+ messages in thread
From: Sakari Ailus @ 2026-12-04  9:15 UTC (permalink / raw)
  To: Lachlan Michael
  Cc: kernel test robot, oe-kbuild-all, Jai Luthra, Ricardo Ribalda

Hi Lachlan,

On Fri, Dec 04, 2026 at 11:43:56AM +0900, Lachlan Michael wrote:
> Hi All,
> 
> On 12/3/2026 9:07 PM, kernel test robot wrote:
> > sparse warnings: (new ones prefixed by >>)
> > > > drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
> >     drivers/media/i2c/imx908.c:1143:9: sparse:   also defined here
> > 
> > vim +1142 drivers/media/i2c/imx908.c
> > 
> >    1140	
> >    1141	static const struct of_device_id imx908_of_ids[] = {
> > > 1142		{ .compatible = "sony,imx908" },
> >    1143		{ /* sentinel */ }
> >    1144	};
> >    1145	MODULE_DEVICE_TABLE(of, imx908_of_ids);
> >    1146	
> > 
> 
> I believe this is a sparse false positive. Lines 1142 and 1143 are two
> separate array elements (the match entry and the sentinel) of a standard OF
> match table, with no duplicated designators.

I was wondering, too, where that warning came from. I guess we can ignore
it for now.

Also cc Ricardo.

-- 
Regards,

Sakari Ailus

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

* Re: [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
  2026-12-04  9:15   ` Sakari Ailus
@ 2026-12-04 12:51     ` Philip Li
  0 siblings, 0 replies; 4+ messages in thread
From: Philip Li @ 2026-12-04 12:51 UTC (permalink / raw)
  To: Sakari Ailus
  Cc: Lachlan Michael, kernel test robot, oe-kbuild-all, Jai Luthra,
	Ricardo Ribalda

On Fri, Dec 04, 2026 at 11:15:04AM +0200, Sakari Ailus wrote:
> Hi Lachlan,
> 
> On Fri, Dec 04, 2026 at 11:43:56AM +0900, Lachlan Michael wrote:
> > Hi All,
> > 
> > On 12/3/2026 9:07 PM, kernel test robot wrote:
> > > sparse warnings: (new ones prefixed by >>)
> > > > > drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice
> > >     drivers/media/i2c/imx908.c:1143:9: sparse:   also defined here
> > > 
> > > vim +1142 drivers/media/i2c/imx908.c
> > > 
> > >    1140	
> > >    1141	static const struct of_device_id imx908_of_ids[] = {
> > > > 1142		{ .compatible = "sony,imx908" },
> > >    1143		{ /* sentinel */ }
> > >    1144	};
> > >    1145	MODULE_DEVICE_TABLE(of, imx908_of_ids);
> > >    1146	
> > > 
> > 
> > I believe this is a sparse false positive. Lines 1142 and 1143 are two
> > separate array elements (the match entry and the sentinel) of a standard OF
> > match table, with no duplicated designators.
> 
> I was wondering, too, where that warning came from. I guess we can ignore
> it for now.

Sorry for the false positive, this looks like a sparse issue and under fix [1].
Meanwhile I will update the bot to avoid sending out such reports.

[1] https://lore.kernel.org/oe-kbuild-all/f9fbbbb9-feed-4932-a725-7e63a5c0a53a@acm.org/

> 
> Also cc Ricardo.
> 
> -- 
> Regards,
> 
> Sakari Ailus
> 

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

end of thread, other threads:[~2026-12-04 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 12:07 [linux-next:master 5015/14229] drivers/media/i2c/imx908.c:1142:9: sparse: sparse: Initializer entry defined twice kernel test robot
2026-12-04  2:43 ` Lachlan Michael
2026-12-04  9:15   ` Sakari Ailus
2026-12-04 12:51     ` Philip Li

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.