Skip to contentSkip to conversation

fanotify: select ANON_INODES.

PATCH Applied Paul Mundt 2 participants 2 messages Nov 24, 2009

Subsystems (3)
lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 fanotify: select ANON_INODES.

fanotify references anon_inode_getfd(), which is only available with ANON_INODES enabled. Presently this bails out with the following:

LD vmlinux
fs/built-in.o: In function `sys_fanotify_init':
(.text+0x26d1c): undefined reference to `anon_inode_getfd'
make: *** [vmlinux] Error 1

which is trivially corrected by adding an ANON_INODES select.

---

 fs/notify/fanotify/Kconfig |    1 +
 1 file changed, 1 insertion(+)
fs/notify/fanotify/Kconfig +1 -0
index f9d7ae0..668e5df 100644
@@ -1,6 +1,7 @@
 config FANOTIFY
 	bool "Filesystem wide access notification"
 	select FSNOTIFY
+	select ANON_INODES
 	default y
 	---help---
 	   Say Y here to enable fanotify suport.  fanotify is a file access
Applied
#1 lore raw
Quoted 11 lines · Paul Mundt

fanotify references anon_inode_getfd(), which is only available with ANON_INODES enabled. Presently this bails out with the following:

LD vmlinux
fs/built-in.o: In function `sys_fanotify_init':
(.text+0x26d1c): undefined reference to `anon_inode_getfd'
make: *** [vmlinux] Error 1

which is trivially corrected by adding an ANON_INODES select.

Thanks, applied!

Quoted 17 lines

---

 fs/notify/fanotify/Kconfig |    1 +
 1 file changed, 1 insertion(+)
fs/notify/fanotify/Kconfig +1 -0
index f9d7ae0..668e5df 100644
@@ -1,6 +1,7 @@
 config FANOTIFY
 	bool "Filesystem wide access notification"
 	select FSNOTIFY
+	select ANON_INODES
 	default y
 	---help---
 	   Say Y here to enable fanotify suport.  fanotify is a file access