]> git.karo-electronics.de Git - karo-tx-linux.git/commit
debugobjects: be smarter about static objects
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 16 Nov 2011 23:41:11 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 24 Nov 2011 05:14:47 +0000 (16:14 +1100)
commita89949ee899ef638a60669b5e4ae9f45649f19f7
tree417bdb5e04bf4638e9260dc1f46eb07da036c1d6
parentb93d799aa2a7df4ce4f2a2591d5d0249e16dd774
debugobjects: be smarter about static objects

Remove the WARN_ON() in timer_fixup_activate() and actually use the return
code from fixup to tell the debugobjects code to print a warning.  This
provides better diagnostic information via a nice debugobjects warning
instead of a simple WARN_ON(1) in the timer code with no information as to
what is wrong.  We also assign a dummy timer callback so that if the timer
is actually set to fire we don't oops.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Christine Chan <cschan@codeaurora.org>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/timer.c
lib/debugobjects.c