From fb39f360f4dc671e1f7843c64fa4624aa945841d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 25 May 2003 01:12:37 -0700 Subject: [PATCH] CONFIG_EPOLL From: Christopher Hoover Here's a patch to drop some more text/data/bss out of 2.5. This time the ``victim'' is eventpollfs (epoll). --- include/linux/eventpoll.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h index 632c5d6efe6f..8288857d2ade 100644 --- a/include/linux/eventpoll.h +++ b/include/linux/eventpoll.h @@ -40,12 +40,21 @@ asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, struct epoll_event *even asmlinkage long sys_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); +#ifdef CONFIG_EPOLL + /* Used to initialize the epoll bits inside the "struct file" */ void eventpoll_init_file(struct file *file); /* Used in fs/file_table.c:__fput() to unlink files from the eventpoll interface */ void eventpoll_release(struct file *file); +#else + +static inline void eventpoll_init_file(struct file *file) {} +static inline void eventpoll_release(struct file *file) {} + +#endif + #endif /* #ifdef __KERNEL__ */ #endif /* #ifndef _LINUX_EVENTPOLL_H */ -- cgit v1.2.3