Skip to content

Commit 67f5589

Browse files
rddunlapswhiteho
authored andcommitted
[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: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
1 parent ee32e4f commit 67f5589

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/dlm/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config DLM
55
tristate "Distributed Lock Manager (DLM)"
66
depends on IPV6 || IPV6=n
77
select CONFIGFS_FS
8+
select SYSFS
89
select IP_SCTP if DLM_SCTP
910
help
1011
A general purpose distributed lock manager for kernel or userspace

‎fs/gfs2/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ config GFS2_FS_LOCKING_DLM
3838
select IP_SCTP if DLM_SCTP
3939
select CONFIGFS_FS
4040
select DLM
41+
select SYSFS
4142
help
4243
Multiple node locking module for GFS2
4344

0 commit comments

Comments
 (0)