Skip to contentSkip to conversation

Inotify: Fix build failure in inotify user support

PATCH In review Ralf Baechle 2 participants 3 messages Mar 8, 2010 – May 4, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Inotify: Fix build failure in inotify user support

CONFIG_INOTIFY_USER defined but CONFIG_ANON_INODES undefined will result in the following build failure:

LD vmlinux
fs/built-in.o: In function 'sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): undefined reference to 'anon_inode_getfd' fs/built-in.o: In function `sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): relocation truncated to fit: R_MIPS_26 against 'anon_inode_getfd' make[2]: *** [vmlinux] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

To: Al Viro <[email protected]>
Cc: [email protected]

 fs/notify/inotify/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/notify/inotify/Kconfig +1 -0
index 3e56dbf..b3a159b 100644
@@ -15,6 +15,7 @@ config INOTIFY
 
 config INOTIFY_USER
 	bool "Inotify support for userspace"
+	select ANON_INODES
 	select FSNOTIFY
 	default y
 	---help---
#1 lore raw
Quoted 11 lines · Ralf Baechle

CONFIG_INOTIFY_USER defined but CONFIG_ANON_INODES undefined will result in the following build failure:

LD vmlinux
fs/built-in.o: In function 'sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): undefined reference to 'anon_inode_getfd' fs/built-in.o: In function `sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): relocation truncated to fit: R_MIPS_26 against 'anon_inode_getfd' make[2]: *** [vmlinux] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Ping. The problem still exists in rc6.

Ralf

#2 lore raw

Hi,

Quoted 14 lines · On Friday 30 April 2010 19:04:31 Ralf Baechle wrote:
Quoted 5 lines · Ralf Baechle

CONFIG_INOTIFY_USER defined but CONFIG_ANON_INODES undefined will result

in the following build failure:
LD vmlinux

Quoted 7 lines

fs/built-in.o: In function 'sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): undefined reference to 'anon_inode_getfd' fs/built-in.o: In function `sys_inotify_init1':
(.text.sys_inotify_init1+0x22c): relocation truncated to fit: R_MIPS_26 against 'anon_inode_getfd' make[2]: *** [vmlinux] Error 1 make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Quoted 1 line

Ping. The problem still exists in rc6.

Ralf's patch fixes the issue for me.