Inotify: Fix build failure in inotify user support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 30, 2010 - 10:59 am

Gitweb:     http://git.kernel.org/linus/12b1b321689cf92236fb216472744e39419fab30
Commit:     12b1b321689cf92236fb216472744e39419fab30
Parent:     8f2adb7cab81fc4984ddfe3a1efd1b62d52bead8
Author:     Ralf Baechle <ralf@linux-mips.org>
AuthorDate: Mon Mar 8 20:51:03 2010 +0100
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Fri Apr 30 10:14:56 2010 -0700

    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
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 fs/notify/inotify/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/notify/inotify/Kconfig b/fs/notify/inotify/Kconfig
index 3e56dbf..b3a159b 100644
--- a/fs/notify/inotify/Kconfig
+++ b/fs/notify/inotify/Kconfig
@@ -15,6 +15,7 @@ config INOTIFY
 
 config INOTIFY_USER
 	bool "Inotify support for userspace"
+	select ANON_INODES
 	select FSNOTIFY
 	default y
 	---help---
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Inotify: Fix build failure in inotify user support, Linux Kernel Mailing ..., (Fri Apr 30, 10:59 am)