Commit:     d2fd89962cd5de6b1fb9c1c789b56bc16f58f121
Parent:     c0887eedb4498e20e7895508b7af8e419e397405
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 27 14:09:48 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 11:34:53 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: Davide Libenzi <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to