mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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: 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>
This commit is contained in:
parent
c0887eedb4
commit
d2fd89962c
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ int eventfd_signal(struct file *file, int n);
|
|||
#else /* CONFIG_EVENTFD */
|
||||
|
||||
#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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue