summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ Freyensee <james_p_freyensee@linux.intel.com>2011-05-07 01:56:47 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-14 01:30:59 +0200
commit7d74f492e4dd0034a61458eb80f70b1d2862ed07 (patch)
tree1be37b81f6cc0260314012a1e06b8779df0a4ec6
parenttty: Remove to support serial for S5P6442 (diff)
downloadlinux-7d74f492e4dd0034a61458eb80f70b1d2862ed07.tar.xz
linux-7d74f492e4dd0034a61458eb80f70b1d2862ed07.zip
export kernel call get_task_comm().
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 <james_p_freyensee@linux.intel.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--fs/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 5e62d26a4fec..7de94950a5b4 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)
{