[2.6.22 regression fix] DLM must depend on SYSFS

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michal Piotrowski <michal.k.k.piotrowski@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Patrick Caulfield <pcaulfie@...>, Steven Whitehouse <swhiteho@...>, <teigland@...>
Cc: <cluster-devel@...>, <linux-kernel@...>
Date: Saturday, July 7, 2007 - 12:14 am

The dependency of DLM on SYSFS got lost in
commit 6ed7257b46709e87d79ac2b6b819b7e0c9184998 resulting in the 
following compile error with CONFIG_DLM=y, CONFIG_SYSFS=n:

<--  snip  -->

...
  LD      .tmp_vmlinux1
fs/built-in.o: In function `dlm_lockspace_init':
/home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/fs/dlm/lockspace.c:231: undefined reference to `kernel_subsys'
fs/built-in.o: In function `configfs_init':
/home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/fs/configfs/mount.c:143: undefined reference to `kernel_subsys'
make[1]: *** [.tmp_vmlinux1] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
--- linux-2.6.22-rc6-mm1/fs/dlm/Kconfig.old	2007-07-07 06:07:10.000000000 +0200
+++ linux-2.6.22-rc6-mm1/fs/dlm/Kconfig	2007-07-07 06:07:26.000000000 +0200
@@ -3,7 +3,7 @@
 
 config DLM
 	tristate "Distributed Lock Manager (DLM)"
-	depends on IPV6 || IPV6=n
+	depends on SYSFS && (IPV6 || IPV6=n)
 	select CONFIGFS_FS
 	select IP_SCTP
 	help

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6.22 regression fix] DLM must depend on SYSFS, Adrian Bunk, (Sat Jul 7, 12:14 am)
Re: [2.6.22 regression fix] DLM must depend on SYSFS, Linus Torvalds, (Sat Jul 7, 4:51 pm)
Re: [2.6.22 regression fix] DLM must depend on SYSFS, Adrian Bunk, (Sat Jul 7, 5:11 pm)
Re: [2.6.22 regression fix] DLM must depend on SYSFS, Linus Torvalds, (Sat Jul 7, 5:18 pm)