From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966245AbXDDBfM (ORCPT ); Tue, 3 Apr 2007 21:35:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966247AbXDDBfM (ORCPT ); Tue, 3 Apr 2007 21:35:12 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:51375 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966245AbXDDBfI (ORCPT ); Tue, 3 Apr 2007 21:35:08 -0400 X-AuthUser: davidel@xmailserver.org From: Davide Libenzi To: Linux Kernel Mailing List Cc: Andrew Morton Date: Tue, 03 Apr 2007 18:35:06 -0700 Subject: [patch 2/3] epoll cleanups - epoll no module ... MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Epoll is either compiled it, or not (if EMBEDDED). Remove the module code and use fs_initcall(). Signed-off-by: Davide Libenzi - Davide Index: linux-2.6.21-rc5.mm4/fs/eventpoll.c =================================================================== --- linux-2.6.21-rc5.mm4.orig/fs/eventpoll.c 2007-04-03 18:33:30.000000000 -0700 +++ linux-2.6.21-rc5.mm4/fs/eventpoll.c 2007-04-03 18:33:40.000000000 -0700 @@ -11,7 +11,6 @@ * */ -#include #include #include #include @@ -1462,16 +1461,5 @@ 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");