Kconfig: make KOBJECT_RELEASE debugging require timer debugging
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Oct 2013 15:33:36 +0000 (08:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Oct 2013 15:33:36 +0000 (08:33 -0700)
Without the timer debugging, the delayed kobject release will just
result in undebuggable oopses if it triggers any latent bugs.  That
doesn't actually help debugging at all.

So make DEBUG_KOBJECT_RELEASE depend on DEBUG_OBJECTS_TIMERS to avoid
having people enable one without the other.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Kconfig.debug

index 06344d986eb9dde61f341057f431d3183301f54e..094f3152ec2bf318dfe82797baede3b516cbd527 100644 (file)
@@ -983,7 +983,7 @@ config DEBUG_KOBJECT
 
 config DEBUG_KOBJECT_RELEASE
        bool "kobject release debugging"
 
 config DEBUG_KOBJECT_RELEASE
        bool "kobject release debugging"
-       depends on DEBUG_KERNEL
+       depends on DEBUG_OBJECTS_TIMERS
        help
          kobjects are reference counted objects.  This means that their
          last reference count put is not predictable, and the kobject can
        help
          kobjects are reference counted objects.  This means that their
          last reference count put is not predictable, and the kobject can