Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3680368pjo; Wed, 26 Feb 2020 14:58:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzvBJK9f7m4vhREkEb0VKvO0pOUVSlMBMaLwsQ6eqf9MAHg6PfB9vHTmXKHAMR3NUk02Dt7 X-Received: by 2002:a9d:1d2:: with SMTP id e76mr556500ote.223.1582757935853; Wed, 26 Feb 2020 14:58:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582757935; cv=none; d=google.com; s=arc-20160816; b=LltPMsAJx88HSAv8bg8SkEO+b3evGrxA065QmN+5+T948fVk7372oy+zn7vicTHWIe 3iE6MMF64k90q+cbVBK0UJE08uG7Ud+BoCgbItLPU4gGsck57eHy6K/EAhjD9MDppLSO 8/gM1JRWz15n6NYOzWUF6unD+AX+AgxalmqoVBb9u0ziWng84ovMN4JbTKZsHQG0mqaq C/m0WBOQMTDOVOTcb6RHhsj0elnNrha9XwEhPFB25JoRh9HJ1nS8e98qsjvwKhF7rFUi YvhFiF9ppD5J7eayaYG1OsMYKFQcLcuMS6Hu2oBbnu99w2zGA32HvDcx61RYvFEZBPuj jYaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pdWVOw3XbP9rnJNpBWicc5Lm1aX3lGrV8mP9d8FqVX4=; b=WZEdFa/KGtYDn3+wlXBXsodcd75K5Z6NHmGMMEtY9ioq3Ra6LLcqHkzIkF0V1sPkba H2OwG8hXjgST5yJ6b0RTJISBd3YONAl6lIqBA6a1u7r0ccymZ/57upZT2YVdvqcuWksB Z3lxyiTF6ju3hmwr5p9h5y+4Tkcuhyfxf1PC873xYoZBqelKWdeAOKetvO2VHVJdN9up gQ6MbHrnRQSNrtUAGMt/7ydcXcjapLkM5RbEmxug0vlB01Kh/im969xVIWZqk17h1DAB TTBG7u5KiFRBMILUwB9hokwkLkF5f33eT3PWcIMlAckyHgrvNXEjgTCVwNTsa98h+RMz uyvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/A6/rCo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k202si335237oih.244.2020.02.26.14.58.44; Wed, 26 Feb 2020 14:58:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="a/A6/rCo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbgBZW47 (ORCPT + 99 others); Wed, 26 Feb 2020 17:56:59 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45293 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbgBZW47 (ORCPT ); Wed, 26 Feb 2020 17:56:59 -0500 Received: by mail-pf1-f195.google.com with SMTP id 2so520286pfg.12 for ; Wed, 26 Feb 2020 14:56:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pdWVOw3XbP9rnJNpBWicc5Lm1aX3lGrV8mP9d8FqVX4=; b=a/A6/rCoSO3AEeorvAoIiFDSyMkth38Q4wbPm8ZYRKFJdpUCBdxKiywuOmA4pC3tvc pAILl6lTGpIICjVWMjx83+oF5QjalA4G6ShShcVbMn7Cipge8d3ufWtqdTInYoLBfmeE cpHZrcprqeqMzTEgcQqdkNXsBa/QbbvqsjLnyFSlGVoDZbVGEKLGdcNfXGxOod3AWBVg fIvtCWfrJ/c3HPblRDEK0l2RBmtc1M2b78uvos4GRTBfknLjUSjFZ6bC5KZteXc3n45/ vP51Yye8a2jur90D7nDUDLdsjBxPKbcmwgla87aPIkxHhrN7emRr0tDiqE9QhFlsNrfS F25Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pdWVOw3XbP9rnJNpBWicc5Lm1aX3lGrV8mP9d8FqVX4=; b=eCjmhYNA6uNrE1GRuS506F3aZAJvvbIssDK8+yU1BQqcVSC9C9SQbhzOGojr8wW/4M IBsLfuLXrddAUJQIk5hXfbuyqWHQsz0pZTiUfxvUlDCC1ebVcjhZ99emJfeZ1U1fgJlI lWHIYsS18EbS6me79GB6+i2TLVSNVjqoAsdaNGqzQDFTdPqTzED6gUwAAttMhJHB6f2C Cu7+iW5KBgEmFOCalll7DvsfBYLYRvAAemDxkO8mLZSE6Ghdp4128hQ3vFJPMcKHgeJu 8s5wvziCiSjt2RzUZVCbqpdu9+MhDt2MkQnaH4ROC6b7nJlm1Z66rVuZ8FCrDHjVl+qC 2y3w== X-Gm-Message-State: APjAAAVHh1p0fplRg3t5MI0h+UqWHSWQ/R9aQbxdscfYXN6dqomCIPUi 9T76vgchQWM8qbJGk2CTyw7T4SJJji4= X-Received: by 2002:a63:3c46:: with SMTP id i6mr1060690pgn.413.1582757817192; Wed, 26 Feb 2020 14:56:57 -0800 (PST) Received: from localhost (g183.222-224-185.ppp.wakwak.ne.jp. [222.224.185.183]) by smtp.gmail.com with ESMTPSA id v7sm3979771pfn.61.2020.02.26.14.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 14:56:56 -0800 (PST) From: Stafford Horne To: LKML , Openrisc Cc: Stafford Horne , Jonas Bonn , Stefan Kristiansson , Christian Brauner , Greg Kroah-Hartman , Thomas Gleixner , Allison Randal Subject: [PATCH 3/3] openrisc: Cleanup copy_thread_tls docs and comments Date: Thu, 27 Feb 2020 07:56:25 +0900 Message-Id: <20200226225625.28935-4-shorne@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200226225625.28935-1-shorne@gmail.com> References: <20200226225625.28935-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously copy_thread_tls was copy_thread and before that something else. Remove the documentation about the regs parameter that didn't exist in either version. Next, fix comment wrapping and details about how TLS pointer gets to the copy_thread_tls function. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c index 6695f167e126..b442e7b59e17 100644 --- a/arch/openrisc/kernel/process.c +++ b/arch/openrisc/kernel/process.c @@ -122,7 +122,6 @@ extern asmlinkage void ret_from_fork(void); * @usp: user stack pointer or fn for kernel thread * @arg: arg to fn for kernel thread; always NULL for userspace thread * @p: the newly created task - * @regs: CPU context to copy for userspace thread; always NULL for kthread * @tls: the Thread Local Storate pointer for the new process * * At the top of a newly initialized kernel stack are two stacked pt_reg @@ -180,7 +179,8 @@ copy_thread_tls(unsigned long clone_flags, unsigned long usp, userregs->sp = usp; /* - * For CLONE_SETTLS set "tp" (r10) to the TLS pointer passed to sys_clone. + * For CLONE_SETTLS set "tp" (r10) to the TLS pointer passed + * in clone_args to sys_clone3. */ if (clone_flags & CLONE_SETTLS) userregs->gpr[10] = tls; -- 2.21.0