From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932598AbbCMSPL (ORCPT ); Fri, 13 Mar 2015 14:15:11 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:43710 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932464AbbCMSPI (ORCPT ); Fri, 13 Mar 2015 14:15:08 -0400 From: Alex Dowad To: linux-kernel@vger.kernel.org Cc: David Howells Subject: [PATCH 11/32] frv: copy_thread(): rename 'arg' argument to 'kthread_arg' Date: Fri, 13 Mar 2015 20:14:34 +0200 Message-Id: <1426270496-26362-1-git-send-email-alexinbeijing@gmail.com> X-Mailer: git-send-email 2.0.0.GIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'arg' argument to copy_thread() is only ever used when forking a new kernel thread. Hence, rename it to 'kthread_arg' for clarity (and consistency with do_fork() and other arch-specific implementations of copy_thread()). Signed-off-by: Alex Dowad --- arch/frv/kernel/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/frv/kernel/process.c b/arch/frv/kernel/process.c index 5d40aeb77..bca9f55 100644 --- a/arch/frv/kernel/process.c +++ b/arch/frv/kernel/process.c @@ -123,10 +123,10 @@ inline unsigned long user_stack(const struct pt_regs *regs) } /* - * set up the kernel stack and exception frames for a new process + * Copy architecture-specific thread state */ int copy_thread(unsigned long clone_flags, - unsigned long usp, unsigned long arg, + unsigned long usp, unsigned long kthread_arg, struct task_struct *p) { struct pt_regs *childregs; @@ -145,8 +145,9 @@ int copy_thread(unsigned long clone_flags, p->thread.frame0 = childregs; if (unlikely(p->flags & PF_KTHREAD)) { + /* kernel thread */ childregs->gr9 = usp; /* function */ - childregs->gr8 = arg; + childregs->gr8 = kthread_arg; p->thread.pc = (unsigned long) ret_from_kernel_thread; save_user_regs(p->thread.user); return 0; -- 2.0.0.GIT