Skip to contentSkip to conversation

gfs2/ops_file.c: fix build breakage

PATCH In review Alexander Beregalov 2 participants 2 messages Feb 4, 2009 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2/ops_file.c: fix build breakage

fs/gfs2/ops_file.c:746: error: 'generic_setlease' undeclared here (not in a function)

---

 fs/gfs2/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/gfs2/Kconfig +1 -0
index 3a981b7..97cefdf 100644
@@ -7,6 +7,7 @@ config GFS2_FS
 	select IP_SCTP if DLM_SCTP
 	select FS_POSIX_ACL
 	select CRC32
+	select FILE_LOCKING
 	help
 	  A cluster filesystem.
 
#1 lore raw

Hi,

There is already a patch queued up in -mm to fix this. The issue is not that GFS2 should depend upon FILE_LOCKING but that generic_setlease should be defined so that this reference to it is correct even when FILE_LOCKING is not selected,

Steve.

Quoted 21 lines · Alexander Beregalov

fs/gfs2/ops_file.c:746: error: 'generic_setlease' undeclared here (not in a function)

---

 fs/gfs2/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/gfs2/Kconfig +1 -0
index 3a981b7..97cefdf 100644
@@ -7,6 +7,7 @@ config GFS2_FS
 	select IP_SCTP if DLM_SCTP
 	select FS_POSIX_ACL
 	select CRC32
+	select FILE_LOCKING
 	help
 	  A cluster filesystem.