From: J Freyensee Date: Fri, 6 May 2011 23:56:47 +0000 (-0700) Subject: export kernel call get_task_comm(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d74f492e4dd0034a61458eb80f70b1d2862ed07;p=linux-beck.git 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 Acked-by: David Rientjes Signed-off-by: Greg Kroah-Hartman --- 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) {