mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 13:13:57 +08:00
735643ee6c
Remove the "#ifdef __KERNEL__" tests from unexported header files in linux/include whose entire contents are wrapped in that preprocessor test. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
26 lines
467 B
C
26 lines
467 B
C
/*
|
|
* include/linux/eventfd.h
|
|
*
|
|
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_EVENTFD_H
|
|
#define _LINUX_EVENTFD_H
|
|
|
|
#ifdef CONFIG_EVENTFD
|
|
|
|
struct file *eventfd_fget(int fd);
|
|
int eventfd_signal(struct file *file, int n);
|
|
|
|
#else /* CONFIG_EVENTFD */
|
|
|
|
#define eventfd_fget(fd) ERR_PTR(-ENOSYS)
|
|
static inline int eventfd_signal(struct file *file, int n)
|
|
{ return 0; }
|
|
|
|
#endif /* CONFIG_EVENTFD */
|
|
|
|
#endif /* _LINUX_EVENTFD_H */
|
|
|