Commit 67f55897 authored by Randy Dunlap's avatar Randy Dunlap Committed by Steven Whitehouse

[GFS2/DLM] use sysfs

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent ee32e4f3
...@@ -5,6 +5,7 @@ config DLM ...@@ -5,6 +5,7 @@ config DLM
tristate "Distributed Lock Manager (DLM)" tristate "Distributed Lock Manager (DLM)"
depends on IPV6 || IPV6=n depends on IPV6 || IPV6=n
select CONFIGFS_FS select CONFIGFS_FS
select SYSFS
select IP_SCTP if DLM_SCTP select IP_SCTP if DLM_SCTP
help help
A general purpose distributed lock manager for kernel or userspace A general purpose distributed lock manager for kernel or userspace
......
...@@ -38,6 +38,7 @@ config GFS2_FS_LOCKING_DLM ...@@ -38,6 +38,7 @@ config GFS2_FS_LOCKING_DLM
select IP_SCTP if DLM_SCTP select IP_SCTP if DLM_SCTP
select CONFIGFS_FS select CONFIGFS_FS
select DLM select DLM
select SYSFS
help help
Multiple node locking module for GFS2 Multiple node locking module for GFS2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment