Inotify: Fix build failure in inotify user support
Subsystems (2)
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 vmlinuxfs/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
@@ -15,6 +15,7 @@ config INOTIFY config INOTIFY_USER bool "Inotify support for userspace" + select ANON_INODES select FSNOTIFY default y ---help---
Quoted 11 lines · Ralf Baechle
CONFIG_INOTIFY_USERdefined butCONFIG_ANON_INODESundefined 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_26against '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
Hi,
Quoted 14 lines · On Friday 30 April 2010 19:04:31 Ralf Baechle wrote:
Quoted 5 lines · Ralf Baechle
CONFIG_INOTIFY_USERdefined butCONFIG_ANON_INODESundefined will resultin the following build failure:
LD vmlinuxQuoted 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_26against '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.