From patchwork Tue May 12 18:26:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Haskins X-Patchwork-Id: 23306 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4CIRPrZ011583 for ; Tue, 12 May 2009 18:27:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753738AbZELS1J (ORCPT ); Tue, 12 May 2009 14:27:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752656AbZELS1G (ORCPT ); Tue, 12 May 2009 14:27:06 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:36293 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbZELS1E (ORCPT ); Tue, 12 May 2009 14:27:04 -0400 Received: from dev.haskins.net (prv-ext-foundry1.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP (TLS encrypted); Tue, 12 May 2009 12:26:53 -0600 Received: from dev.haskins.net (localhost [127.0.0.1]) by dev.haskins.net (Postfix) with ESMTP id B364F46422B; Tue, 12 May 2009 14:26:50 -0400 (EDT) From: Gregory Haskins Subject: [KVM PATCH v7 1/3] eventfd: export eventfd interfaces for module use To: kvm@vger.kernel.org Cc: viro@ZenIV.linux.org.uk, linux-kernel@vger.kernel.org, avi@redhat.com, davidel@xmailserver.org Date: Tue, 12 May 2009 14:26:50 -0400 Message-ID: <20090512182650.26131.21334.stgit@dev.haskins.net> In-Reply-To: <20090512181134.26131.10023.stgit@dev.haskins.net> References: <20090512181134.26131.10023.stgit@dev.haskins.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We want to use eventfd from KVM which can be compiled as a module, so export the interfaces. Signed-off-by: Gregory Haskins Acked-by: Davide Libenzi --- fs/eventfd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/eventfd.c b/fs/eventfd.c index 2a701d5..3f0e197 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -16,6 +16,7 @@ #include #include #include +#include struct eventfd_ctx { wait_queue_head_t wqh; @@ -56,6 +57,7 @@ int eventfd_signal(struct file *file, int n) return n; } +EXPORT_SYMBOL_GPL(eventfd_signal); static int eventfd_release(struct inode *inode, struct file *file) { @@ -197,6 +199,7 @@ struct file *eventfd_fget(int fd) return file; } +EXPORT_SYMBOL_GPL(eventfd_fget); SYSCALL_DEFINE2(eventfd2, unsigned int, count, int, flags) {