Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp457390ybf; Wed, 26 Feb 2020 16:31:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw4kSBfxAaF8+/IlVBxsp5EShlWrC0aw6seNvlUFQF8JxxPjboJSGbkYCL/P3699iMMDvGg X-Received: by 2002:a05:6830:134c:: with SMTP id r12mr1231622otq.126.1582763517170; Wed, 26 Feb 2020 16:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582763517; cv=none; d=google.com; s=arc-20160816; b=qDm3gL2Bpg/BjAwqy6l/X5ilkJO1u7HSR1mUNQGyjbgS6A7VIH525WcEOo9PVW35QG 9EBUpfha32CLAo899sohj5lGezoP1qNkT0mw5PK2VxoDmRnhe+iV7oB/zF7XHCiQyyTq Y5si2O9fI/aLKJ5DujE/CoGM5hBR3DCHClRJsTLjeqv4mDCZ0knV8nPVJYh6lnpV1OQW eMDSQRMYR9LIEdIHgyU/0Fr4zmqOoyPnOvG+9tC0qQZca2LOMFDKI79g4Q8V3KqOOg8t OGNwi1xk9aXtH20S6dpoUYLkWXhsImJv+p+nDABXGLlSYV3jt+mnGkF4N13W6/DsSUej FBvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2MwKceVB/8T/fWJxXCvPWmKs+5MAIGdSRlEhKMQMaSM=; b=YqmcBBW/LCP0vTVLxEogCSWAfJUUg7Zoy2SZzg36ILD0wRjJUl56yOyvbED9MXfaCt PxyoxiHFGe6As3uibTaJmRjpCx9cTJFyaOpzprA7SaAK5DtN7vLWGNTYaq73Q5co0LXm mqfwFfADjFNPt2JCKB/I9vvOJSzJ7n4e5BnEzI/wCG7YkZ9YA8YrI6JeTlR79oiR8rbb hd9z6MRKGRiSU8ODERVjQTdlAjZjLoxyV4p5iKYIlKriwb2tPYuUNbrukD5S1W+vf80j V+stZWkDShgFnN0zIv629B/PfP/0VQ+ZDS+bWgxhmbExmRTaYm0auolwxoY+utw71Tui 6cAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="CWajb/K7"; 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 m19si605845otq.40.2020.02.26.16.31.44; Wed, 26 Feb 2020 16:31:57 -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="CWajb/K7"; 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 S1728063AbgB0AbL (ORCPT + 99 others); Wed, 26 Feb 2020 19:31:11 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37455 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727987AbgB0AbL (ORCPT ); Wed, 26 Feb 2020 19:31:11 -0500 Received: by mail-pg1-f194.google.com with SMTP id z12so492983pgl.4 for ; Wed, 26 Feb 2020 16:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2MwKceVB/8T/fWJxXCvPWmKs+5MAIGdSRlEhKMQMaSM=; b=CWajb/K7LI9FjAaB0ca4YN4TLt9eR/If8M1yvhaNyiG6fGghZi0c8rTuJyMJjpny6R zlFiY3Czt/oeHzrLsGWTOz5PhcCoQF941tW9fR370DJobzH/WlSEhwCuiQNctzOtm3/n 8uj6wSTdA5b8qWK7CXc2dJoPQFWNADxjn5Y8pRtYfjVYwZhV4wRkAfgQbGQT8xhG1wZo ge0eOtm0w49qYCGDiYbfkbBWEb8++va1VITOpE+CZSSN+XPdLgxqDk1ccXlWGKivtl6l seszXaJphBaiEX+gy2tPdTHkbCVxSOUknbnD+JZg6CYIE5/1EWxeQC8gMVV1nHVD2GKg 77RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2MwKceVB/8T/fWJxXCvPWmKs+5MAIGdSRlEhKMQMaSM=; b=iLuWTj/Npl3doa/mCtaZ8OZgc+vBYampd4QvLrozewlCvP7YIbbRupg/P2zluBEJBz imKNk7+6d678srfrHrnYmgBWnLvalYWgJ/gWZg/HPXGJ8JdVuE5uxAOka3Kuf/1l99LY Tw7B6JV8Ku/+F7k8EezpIsGeMCi4j1aIEHCqceienrm/iRPzvIQH1gXLnTDfW0RU+OBI yljO5RtsvWMVV5I+cX2nrAHFS0hRqJ3uwX3FbN0blCLW7iLw/uM/LV7Wm69rlYDiDvGK IN807OgMZjxbjwkPLImq2lWo346s7iCcZtdAIvkqSsGZc3P2w5sO6q93ww9ROkUocKKH CB3Q== X-Gm-Message-State: APjAAAXSoLwaC3qF+1UUCU0IMMEMEtYEPvEWqd3zaH4iPYSZsA8xVrDf fipDw5UJXkuUMKd4r+rboh5bZ6ZN6vk= X-Received: by 2002:a63:ed01:: with SMTP id d1mr1271350pgi.95.1582763467915; Wed, 26 Feb 2020 16:31:07 -0800 (PST) Received: from localhost (g183.222-224-185.ppp.wakwak.ne.jp. [222.224.185.183]) by smtp.gmail.com with ESMTPSA id x65sm4612875pfb.171.2020.02.26.16.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 16:31:07 -0800 (PST) Date: Thu, 27 Feb 2020 09:31:05 +0900 From: Stafford Horne To: LKML , Openrisc Cc: Jonas Bonn , Stefan Kristiansson , Christian Brauner , Greg Kroah-Hartman , Thomas Gleixner , Allison Randal Subject: Re: [PATCH 1/3] openrisc: Convert copy_thread to copy_thread_tls Message-ID: <20200227003105.GF7926@lianli.shorne-pla.net> References: <20200226225625.28935-1-shorne@gmail.com> <20200226225625.28935-2-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200226225625.28935-2-shorne@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 07:56:23AM +0900, Stafford Horne wrote: > This is required for clone3 which passes the TLS value through a > struct rather than a register. [...] > diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c > index b06f84f6676f..6695f167e126 100644 > --- a/arch/openrisc/kernel/process.c > +++ b/arch/openrisc/kernel/process.c > @@ -117,12 +117,13 @@ void release_thread(struct task_struct *dead_task) > extern asmlinkage void ret_from_fork(void); > > /* > - * copy_thread > + * copy_thread_tls > * @clone_flags: flags > * @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 This should be *Storage*.