SMC91x: delete unused local variable "lp"
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / eventfd.h
bloba667637b54e3912783c9f1e086c57df74784e05b
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
11 #ifdef CONFIG_EVENTFD
13 /* For O_CLOEXEC and O_NONBLOCK */
14 #include <linux/fcntl.h>
16 /* Flags for eventfd2. */
17 #define EFD_CLOEXEC O_CLOEXEC
18 #define EFD_NONBLOCK O_NONBLOCK
20 struct file *eventfd_fget(int fd);
21 int eventfd_signal(struct file *file, int n);
23 #else /* CONFIG_EVENTFD */
25 #define eventfd_fget(fd) ERR_PTR(-ENOSYS)
26 static inline int eventfd_signal(struct file *file, int n)
27 { return 0; }
29 #endif /* CONFIG_EVENTFD */
31 #endif /* _LINUX_EVENTFD_H */