Re: [Query]: Regmap v3.8: Compilation Warning: regmap_read_debugfs()

From: Mark Brown
Date: Wed Feb 20 2013 - 07:14:50 EST


On Wed, Feb 20, 2013 at 01:23:09PM +0530, Viresh Kumar wrote:

> I am unable to understand why this warning is coming and that too on
> line 180 (as that doesn't use this variable). I can't see how this variable is
> used uninitialized.

The compiler isn't as smart about code flow analysis as it thinks it is,
the code is safe. There's a patch going to Linus this merge window
which shuts up the warning.

Attachment: signature.asc
Description: Digital signature