]> git.karo-electronics.de Git - karo-tx-linux.git/commit
debugobjects: Fix selftest for static warnings
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 16 Dec 2011 04:49:36 +0000 (15:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:00:20 +0000 (17:00 +1100)
commit7b75e88ab953053ffa111149d2e6853200f50ac9
treecb5ec916c465d6f46e4b85ddd93e5a33fa951528
parent30787a8e1f279e3615ef9fe6a60c9ea1d2847e0f
debugobjects: Fix selftest for static warnings

debugobjects is now printing a warning when a fixup for a NOTAVAILABLE
object is run.  This causes the selftest to fail like:

[    0.000000] ODEBUG: selftest warnings failed 4 != 5

We could just increase the number of warnings that the selftest is
expecting to see because that is actually what has changed.  But, it turns
out that fixup_activate() was written with inverted logic and thus a fixup
for a static object returned 1 indicating the object had been fixed, and 0
otherwise.  Fix the logic to be correct and update the counts to reflect
that nothing needed fixing for a static object.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/debugobjects.c