]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[PATCH] DEBUG_FS must depend on SYSFS
authorAdrian Bunk <bunk@stusta.de>
Fri, 29 Jul 2005 19:14:28 +0000 (12:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Jul 2005 20:12:49 +0000 (13:12 -0700)
CONFIG_DEBUG_FS=y and CONFIG_SYSFS=n results in the following compile
error:

<--  snip  -->

...
  LD      vmlinux
fs/built-in.o: In function `debugfs_init':
inode.c:(.init.text+0x31be): undefined reference to `kernel_subsys'
make: *** [vmlinux] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/Kconfig.debug

index 0c421295e613f3436ddb29cf62c4823e48817762..299f7f3b5b0871fdd332a647f83ea54d2ddf059b 100644 (file)
@@ -141,7 +141,7 @@ config DEBUG_IOREMAP
 
 config DEBUG_FS
        bool "Debug Filesystem"
-       depends on DEBUG_KERNEL
+       depends on DEBUG_KERNEL && SYSFS
        help
          debugfs is a virtual file system that kernel developers use to put
          debugging files into.  Enable this option to be able to read and