From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.librecores.org (lists.librecores.org [88.198.125.70]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F989C00140 for ; Sun, 21 Aug 2022 17:42:55 +0000 (UTC) Received: from [172.31.1.100] (localhost.localdomain [127.0.0.1]) by mail.librecores.org (Postfix) with ESMTP id 1CB42248C4; Sun, 21 Aug 2022 19:42:54 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mail.librecores.org (Postfix) with ESMTPS id E1F8A248D5 for ; Sun, 21 Aug 2022 19:42:52 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id e20so10182099wri.13 for ; Sun, 21 Aug 2022 10:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=7Nrg8mvlqxFEJfzKh/tw2+dBWE8D/s98GD2ZnmZvMl4=; b=F0ptjTbxLv2NJaVf2gvBlBshDMfCokLJPPMsIV35UHBlxVECPPma43FPvPitouEYuo 8dgtnhsmPRFBvIO948wmtVOueVdGaHu/6efegZ+eBz+dquE2oOi9XMsurik6HL7oB6MX jV8pUVxH3f1RrwF0NH6pncq2tH6AwoMHlp65ZDTNCyiT6v1mar/Hou3sFmBJRov6RKag O1el0UDp9u/+GhEvUUZhnnL+z+SJXn9IfDfG4Dlp/Iuz3gqoHz6wEPHD+abHkg+f2q3v w/lO0XWXR94cHio73ZqXyXjLv1uGE7J2Xgag56CksB4nH92y765Uk+pyJbn+nJIZ5N3k uDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=7Nrg8mvlqxFEJfzKh/tw2+dBWE8D/s98GD2ZnmZvMl4=; b=gWUX5Wh7/7fb22ofcRnfJ6ta7Gs7nomXAujsiH2JP/Q9Ln9T1ZfunZ5F0freKkWtgn HLq1M9OPGjsLwsJ0wM7b7iZ2vLIBsJ9TzcCur77sHcG1qKIawd4wMqYFqvV2IpQGTUYi PPc5ycNCMJZu6tneyjiQwybOiUZPAFZuDEmH7fct7PXVXSoHasAkgDSxeyH0QodkTHlA 0nHPrEvPMAtKc1DOV3GTlXXNaGTuLe/OtI3yd3a/0EJBQlTR9egJmLjMfc9IQGmNSJzo E413X3DMXmbhTNomNqngZACAEZh9+xq62Iy9cQRLIezIn4gGYQmS/VYuynBGZBcdzJ9V rJLQ== X-Gm-Message-State: ACgBeo2H85f7LaH2kdmUBlYesUVYrJwKBEyx+TvGfI6g+7vKD0QepJHB XSspd4SDUullt01+QpVtkeI= X-Google-Smtp-Source: AA6agR6ii5ETBOVbnXGvrEQ2XHp9wCOCZjRgmUsSrgmsT/hEBxdRm1IL0twc5nHL0nICTG/92OzUKA== X-Received: by 2002:a05:6000:993:b0:222:d509:4b5b with SMTP id by19-20020a056000099300b00222d5094b5bmr9262211wrb.52.1661103772368; Sun, 21 Aug 2022 10:42:52 -0700 (PDT) Received: from localhost ([2a03:b0c0:1:d0::dee:c001]) by smtp.gmail.com with ESMTPSA id t24-20020a1c7718000000b003a643ac2b08sm6876286wmi.8.2022.08.21.10.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 10:42:51 -0700 (PDT) Date: Sun, 21 Aug 2022 17:42:51 +0000 From: Stafford Horne To: Kefeng Wang Subject: Re: [PATCH] kernel: exit: cleanup release_thread() Message-ID: References: <20220819014406.32266-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220819014406.32266-1-wangkefeng.wang@huawei.com> X-BeenThere: openrisc@lists.librecores.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussion around the OpenRISC processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Catalin Marinas , Dave Hansen , x86@kernel.org, linux-mips@vger.kernel.org, "James E . J . Bottomley" , Max Filippov , Guo Ren , linux-csky@vger.kernel.org, sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, WANG Xuerui , Will Deacon , Alexander Gordeev , Anton Ivanov , Jonas Bonn , linux-s390@vger.kernel.org, linux-snps-arc@lists.infradead.org, Yoshinori Sato , Michael Ellerman , Helge Deller , Huacai Chen , Russell King , Christophe Leroy , Ingo Molnar , Vineet Gupta , Matt Turner , Christian Borntraeger , linux-xtensa@linux-xtensa.org, Vasily Gorbik , Chris Zankel , linux-um@lists.infradead.org, Heiko Carstens , linux-alpha@vger.kernel.org, Richard Henderson , Nicholas Piggin , linux-m68k@lists.linux-m68k.org, openrisc@lists.librecores.org, Ivan Kokshaysky , loongarch@lists.linux.dev, Paul Walmsley , Thomas Gleixner , akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, Brian Cain , Michal Simek , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, Dinh Nguyen , linux-riscv@lists.infradead.org, Palmer Dabbelt , Sven Schnelle , Richard Weinberger , Borislav Petkov , Johannes Berg , linuxppc-dev@lists.ozlabs.org, "David S . Miller" Errors-To: openrisc-bounces@lists.librecores.org Sender: "OpenRISC" On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang > --- > arch/openrisc/include/asm/processor.h | 1 - > arch/openrisc/kernel/process.c | 4 ---- > diff --git a/arch/openrisc/include/asm/processor.h b/arch/openrisc/include/asm/processor.h > index aa1699c18add..ed9efb430afa 100644 > --- a/arch/openrisc/include/asm/processor.h > +++ b/arch/openrisc/include/asm/processor.h > @@ -72,7 +72,6 @@ struct thread_struct { > > > void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp); > -void release_thread(struct task_struct *); > unsigned long __get_wchan(struct task_struct *p); > > #define cpu_relax() barrier() > diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c > index 52dc983ddeba..f94b5ec06786 100644 > --- a/arch/openrisc/kernel/process.c > +++ b/arch/openrisc/kernel/process.c > @@ -125,10 +125,6 @@ void show_regs(struct pt_regs *regs) > show_registers(regs); > } > > -void release_thread(struct task_struct *dead_task) > -{ > -} > - > /* > * Copy the thread-specific (arch specific) info from the current > * process to the new one p For OpenRISC bits. Acked-by: Stafford Horne