diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-06-27 21:09:48 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-28 18:34:53 (GMT) |
commit | d2fd89962cd5de6b1fb9c1c789b56bc16f58f121 (patch) | |
tree | 0c07ea2d059d715e6f0d9c8778ea1e1382dfbc95 /include | |
parent | c0887eedb4498e20e7895508b7af8e419e397405 (diff) | |
download | linux-d2fd89962cd5de6b1fb9c1c789b56bc16f58f121.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/eventfd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 0d6ecc6..b489fc6 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h @@ -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 */ |