Skip to contentSkip to conversation

linux-next: build warning after merge of the pm tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Jul 30, 2018 – Jul 31, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Rafael,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/media/i2c/mt9v111.c: In function 'mt9v111_set_format':
drivers/media/i2c/mt9v111.c:887:15: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]

  unsigned int idx;
               ^~~

Introduced by commit

aab7ed1c3927 ("media: i2c: Add driver for Aptina MT9V111")

Looks like a false positive, but not something that gcc can easily see.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi folks,

Quoted 7 lines · Stephen Rothwell

Hi Rafael,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/media/i2c/mt9v111.c: In function 'mt9v111_set_format':
drivers/media/i2c/mt9v111.c:887:15: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 8 lines
  unsigned int idx;
               ^~~

Introduced by commit

aab7ed1c3927 ("media: i2c: Add driver for Aptina MT9V111")

Looks like a false positive, but not something that gcc can easily see.

This must be coming from a new driver merged to media tree recently. Thanks for reporting this.

Signature · 4 lines
Regards,

Sakari Ailus
[email protected]
#2 lore raw

Hi,

Quoted 13 lines · Sakari Ailus

Hi folks,

Quoted 10 lines · Stephen Rothwell

Hi Rafael,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/media/i2c/mt9v111.c: In function 'mt9v111_set_format':
drivers/media/i2c/mt9v111.c:887:15: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]

  unsigned int idx;
               ^~~
Quoted 9 lines
Quoted 5 lines

Introduced by commit

aab7ed1c3927 ("media: i2c: Add driver for Aptina MT9V111")

Looks like a false positive, but not something that gcc can easily see.

This must be coming from a new driver merged to media tree recently. Thanks for reporting this.

Yes, my bad, it is a false positive and I ignored it, sorry about that. There is already a patch sent to linux-media to fix this on top of the driver.

https://patchwork.kernel.org/patch/10547983/

Thanks
j

Quoted 5 lines

--
Regards,

Sakari Ailus
[email protected]

#3 lore raw
In reply to Sakari Ailus

Hi all,

Quoted 11 lines · On Mon, 30 Jul 2018 10:24:45 +0300 Sakari Ailus <[email protected]>…
Quoted 9 lines · Stephen Rothwell

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/media/i2c/mt9v111.c: In function 'mt9v111_set_format':
drivers/media/i2c/mt9v111.c:887:15: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]

  unsigned int idx;
               ^~~
Quoted 8 lines
Quoted 5 lines

Introduced by commit

aab7ed1c3927 ("media: i2c: Add driver for Aptina MT9V111")

Looks like a false positive, but not something that gcc can easily see.

This must be coming from a new driver merged to media tree recently. Thanks for reporting this.

Yeah, sorry, process failure. This should have been reported against the v4l-dvb tree.

Signature · 2 lines
Cheers,
Stephen Rothwell