]> git.karo-electronics.de Git - karo-tx-linux.git/commit
debugobjects: be smarter about static objects
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Dec 2011 03:09:14 +0000 (14:09 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:11 +0000 (15:19 +1100)
commit9c4e1e9f6ba49fc79ded970f660183345c61e3d2
treeb1f2ead011623eb9496e508042eb49e38ff594f4
parentb3673b60e7c831053644b3a4fc71b90fdda50cfd
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