#ifdef CONFIG_EPOLL
/* Used to initialize the epoll bits inside the "struct file" */
-static inline void eventpoll_init_file(struct file *file)
-{
- INIT_LIST_HEAD(&file->f_ep_links);
- spin_lock_init(&file->f_ep_lock);
-}
-
+void eventpoll_init_file(struct file *file);
/* Used to release the epoll bits inside the "struct file" */
void eventpoll_release_file(struct file *file);
eventpoll_release_file(file);
}
+
#else
static inline void eventpoll_init_file(struct file *file) {}