x86: local.h fix checkpatch warnings
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / linux / eventfd.h
blobb489fc6d0b6252f9e75134d8e7ecf5e529c623c5
1 /*
2 * include/linux/eventfd.h
4 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
6 */
8 #ifndef _LINUX_EVENTFD_H
9 #define _LINUX_EVENTFD_H
12 #ifdef __KERNEL__
14 #ifdef CONFIG_EVENTFD
16 struct file *eventfd_fget(int fd);
17 int eventfd_signal(struct file *file, int n);
19 #else /* CONFIG_EVENTFD */
21 #define eventfd_fget(fd) ERR_PTR(-ENOSYS)
22 static inline int eventfd_signal(struct file *file, int n)
23 { return 0; }
25 #endif /* CONFIG_EVENTFD */
27 #endif /* __KERNEL__ */
29 #endif /* _LINUX_EVENTFD_H */