From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: [PATCH 42/48] export kernel call get_task_comm(). Date: Mon, 23 May 2011 12:10:48 -0700 Message-ID: <1306177854-18172-42-git-send-email-gregkh@suse.de> References: <20110523190539.GA17519@kroah.com> <1306177854-18172-1-git-send-email-gregkh@suse.de> Return-path: Received: from cantor2.suse.de ([195.135.220.15]:47364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932294Ab1EWTMN (ORCPT ); Mon, 23 May 2011 15:12:13 -0400 In-Reply-To: <1306177854-18172-1-git-send-email-gregkh@suse.de> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: linux-serial@vger.kernel.org Cc: J Freyensee , Greg Kroah-Hartman From: J Freyensee This allows drivers who call this function to be compiled modularly. Otherwise, a driver who is interested in this type of functionality has to implement their own get_task_comm() call, causing code duplication in the Linux source tree. Signed-off-by: J Freyensee Acked-by: David Rientjes Signed-off-by: Greg Kroah-Hartman --- fs/exec.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 5e62d26..7de9495 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1004,6 +1004,7 @@ char *get_task_comm(char *buf, struct task_struct *tsk) task_unlock(tsk); return buf; } +EXPORT_SYMBOL_GPL(get_task_comm); void set_task_comm(struct task_struct *tsk, char *buf) { -- 1.7.4.2