Skip to contentSkip to conversation

DEBUG_FS must depend on SYSFS

PATCH New Adrian Bunk 1 participant 1 message Jul 23, 2005 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 -->

lib/Kconfig.debug renamed from lib/Kconfig.debug.old +1 -1
@@ -170,7 +170,7 @@
 
 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