提交 d2fd8996 编写于 作者: R Randy Dunlap 提交者: Linus Torvalds

eventfd: clean compile when CONFIG_EVENTFD=n

Fix gcc warning and add parameter checking when CONFIG_EVENTFD=n:

fs/aio.c: In function 'aio_complete':
fs/aio.c:955: warning: statement with no effect
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c0887eed
...@@ -19,7 +19,8 @@ int eventfd_signal(struct file *file, int n); ...@@ -19,7 +19,8 @@ int eventfd_signal(struct file *file, int n);
#else /* CONFIG_EVENTFD */ #else /* CONFIG_EVENTFD */
#define eventfd_fget(fd) ERR_PTR(-ENOSYS) #define eventfd_fget(fd) ERR_PTR(-ENOSYS)
#define eventfd_signal(f, n) 0 static inline int eventfd_signal(struct file *file, int n)
{ return 0; }
#endif /* CONFIG_EVENTFD */ #endif /* CONFIG_EVENTFD */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册