mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
d2fd89962c
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: Randy Dunlap <randy.dunlap@oracle.com> Cc: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
512 B
C
30 lines
512 B
C
/*
|
|
* include/linux/eventfd.h
|
|
*
|
|
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_EVENTFD_H
|
|
#define _LINUX_EVENTFD_H
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#ifdef CONFIG_EVENTFD
|
|
|
|
struct file *eventfd_fget(int fd);
|
|
int eventfd_signal(struct file *file, int n);
|
|
|
|
#else /* CONFIG_EVENTFD */
|
|
|
|
#define eventfd_fget(fd) ERR_PTR(-ENOSYS)
|
|
static inline int eventfd_signal(struct file *file, int n)
|
|
{ return 0; }
|
|
|
|
#endif /* CONFIG_EVENTFD */
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* _LINUX_EVENTFD_H */
|
|
|