[GFS2/DLM] use sysfs
authorRandy Dunlap <randy.dunlap@oracle.com>
Fri, 26 Jan 2007 02:42:39 +0000 (18:42 -0800)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:38:05 +0000 (13:38 -0500)
With CONFIG_DLM=m, CONFIG_PROC_FS=n, and CONFIG_SYSFS=n, kernel build
fails with:

WARNING: "kernel_subsys" [fs/gfs2/locking/dlm/lock_dlm.ko] undefined!
WARNING: "kernel_subsys" [fs/dlm/dlm.ko] undefined!
WARNING: "kernel_subsys" [fs/configfs/configfs.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Since fs/dlm/lockspace.c and fs/gfs2/locking/dlm/sysfs.c use
kernel_subsys, they should either DEPEND on it or SELECT it.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/Kconfig
fs/gfs2/Kconfig

index b5654a284fef1283b1186d7e39dcc1e0b3426396..d1359b91410abbf224f7a0e5f38b78feaa746c1f 100644 (file)
@@ -5,6 +5,7 @@ config DLM
        tristate "Distributed Lock Manager (DLM)"
        depends on IPV6 || IPV6=n
        select CONFIGFS_FS
+       select SYSFS
        select IP_SCTP if DLM_SCTP
        help
        A general purpose distributed lock manager for kernel or userspace
index 6a2ffa2db14f55566db9b6f9d643218afa6d5b59..2c184a97cb127db909743695ee66b88f0595c307 100644 (file)
@@ -38,6 +38,7 @@ config GFS2_FS_LOCKING_DLM
        select IP_SCTP if DLM_SCTP
        select CONFIGFS_FS
        select DLM
+       select SYSFS
        help
        Multiple node locking module for GFS2