Re: [PATCH] regmap: debugfs: Fix compilation warning

From: Mark Brown
Date: Sat Jan 26 2013 - 05:02:02 EST


On Thu, Jan 24, 2013 at 11:12:24AM +0100, Vincent Stehlé wrote:

> If you mean "am I sure the loop iterates at least once", then yes, as
> we have an explicit check just before the concerned list_for_each_entry():

So, I hadn't realised this was triggered by a new compiler version -
Arnd just tried the same bodge. I've committed a workaround for the
compiler which avoids the problems that setting 0 will have and allows
the flow analyis to run where it can.

Attachment: signature.asc
Description: Digital signature