From: Davide Libenzi Epoll is either compiled it, or not (if EMBEDDED). Remove the module code and use fs_initcall(). Signed-off-by: Davide Libenzi Signed-off-by: Andrew Morton --- fs/eventpoll.c | 14 +------------- 1 files changed, 1 insertion(+), 13 deletions(-) diff -puN fs/eventpoll.c~epoll-cleanups-epoll-no-module fs/eventpoll.c --- a/fs/eventpoll.c~epoll-cleanups-epoll-no-module +++ a/fs/eventpoll.c @@ -11,7 +11,6 @@ * */ -#include #include #include #include @@ -1471,16 +1470,5 @@ static int __init eventpoll_init(void) return 0; } +fs_initcall(eventpoll_init); - -static void __exit eventpoll_exit(void) -{ - /* Undo all operations done inside eventpoll_init() */ - kmem_cache_destroy(pwq_cache); - kmem_cache_destroy(epi_cache); -} - -module_init(eventpoll_init); -module_exit(eventpoll_exit); - -MODULE_LICENSE("GPL"); _