浏览代码

[PATCH] DEBUG_FS must depend on SYSFS

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>
Adrian Bunk 20 年之前
父节点
当前提交
3348e05a4f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Kconfig.debug

+ 1 - 1
lib/Kconfig.debug

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