public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Compile Warning] 2.6.30-rc8 build
@ 2009-06-05 16:50 Michael S. Zick
  2009-06-05 17:28 ` Roland Dreier
  0 siblings, 1 reply; 12+ messages in thread
From: Michael S. Zick @ 2009-06-05 16:50 UTC (permalink / raw)
  To: linux-kernel

Group;

I can't argue with gcc on this one either:

drivers/scsi/sd.c: In function 'sd_read_capacity':
drivers/scsi/sd.c:1451: warning: comparison is always false due to limited range of data type

It reads to my eyes as if the function can never
select read_capacity_16 for very large devices.

Suggestions?

Mike

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Compile Warning] 2.6.30-rc8 build
@ 2009-06-05 16:43 Michael S. Zick
  2009-06-05 17:22 ` Roland Dreier
  2009-06-05 18:01 ` Alan Cox
  0 siblings, 2 replies; 12+ messages in thread
From: Michael S. Zick @ 2009-06-05 16:43 UTC (permalink / raw)
  To: linux-kernel

Group,

To my reading of the function, I think gcc has a point:

drivers/serial/8250.c: In function 'serial8250_shutdown':
drivers/serial/8250.c:1685: warning: 'i' may be used uninitialized in this function

It does read as if the code might try to initialize
the 'lock' field of a null pointer.

Suggestions?

Mike

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

end of thread, other threads:[~2009-06-05 22:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 16:50 [Compile Warning] 2.6.30-rc8 build Michael S. Zick
2009-06-05 17:28 ` Roland Dreier
2009-06-05 17:49   ` Michael S. Zick
  -- strict thread matches above, loose matches on Subject: below --
2009-06-05 16:43 Michael S. Zick
2009-06-05 17:22 ` Roland Dreier
2009-06-05 17:40   ` Michael S. Zick
2009-06-05 17:50     ` Roland Dreier
2009-06-05 18:06     ` Alan Cox
2009-06-05 18:01 ` Alan Cox
2009-06-05 21:57   ` Andrew Morton
2009-06-05 22:06     ` Alan Cox
2009-06-05 22:13       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox