Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1544957rwa; Sun, 21 Aug 2022 10:44:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5+7NreWr9OgFwLMhkv8ErYadpJax2lyL2jeF1YNh2C66aadrAVDlhiQ30BqbTByPrJ9046 X-Received: by 2002:a17:902:8502:b0:16c:c5c5:a198 with SMTP id bj2-20020a170902850200b0016cc5c5a198mr16524022plb.88.1661103877207; Sun, 21 Aug 2022 10:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661103877; cv=none; d=google.com; s=arc-20160816; b=GEoPXpdH0VB1e7BA3a9Pui86FdoOwCddarL5mbMoF6owFdBQH0d5tKCWKruOUEr4uI TXJu9YBZPd546mYeWCmc49SeSZt2KvNhLc7C7gzfLppNsZ6vINK34cIUNaAklie6TIFH bS6IBzGMT0uDj0rcCMsKebmTqEcriEEeVVQw31cr4C5/PtaH8RsUdMOvWFOo5XU7B0TN 9cElYjzIHKZ/2smxUeqaK4izcNNwIcm3JIyUm4MWKONLuHS9Jc9o3/k1CXDpEfFKfe1N AW9YSis9A56Sv+yCaLl4b5PhQGI/sMpjM6b17Sp5qxcZATs1/9T/1BlKDq9Zk+tqB0p/ BoKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7Nrg8mvlqxFEJfzKh/tw2+dBWE8D/s98GD2ZnmZvMl4=; b=fN3F7g42CYR1LcMxZXph2MRsZTiB7PWUk1IudA7u5oVTXed3jbGpKKH9VH5CuSI1AK 7gcrZvCOFCZcqvt6qwiP5YF0zaUhgQWk0NeyfgMWFNoioefX2SdmSpaqU0SI95vvrudX cUw9qRG3h1EYrgxZh88jw6S7Y5lAbcyr9tM7tyHKiH6t6tO/Nq9vY870dwJsh9hzW/Vg t0Xh6YDXBEZyWQZ5hVXq4LN/iiddg5oMFn+Nq+Px/yDr4nyopmMI1j71luFx53L47fPR +Ri5xtJKNcICtjOIXhsnwxukpZ4Sy2a5mB6f0LUjdr+U2en+rUIBYXTj0MsDNmkOSSKY HPCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F0ptjTbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a639d05000000b0041ddeeed656si11665181pgd.243.2022.08.21.10.44.26; Sun, 21 Aug 2022 10:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F0ptjTbx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231247AbiHURnC (ORCPT + 99 others); Sun, 21 Aug 2022 13:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbiHURm5 (ORCPT ); Sun, 21 Aug 2022 13:42:57 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE47721823; Sun, 21 Aug 2022 10:42:53 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id b5so6395216wrr.5; Sun, 21 Aug 2022 10:42:53 -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=wGX9SubZqi99/Ue3MgCKY3zxmsKb3MbnLb5/NwjxQpfZ5wzQmav5jjGeUc887aHKG4 rb1quJkyuDQV0w16GRoEqaC5GKtUWApRXiZ6SpWp2kVE+isc5HhWymU1P5gbmW/9rh6g EuGnLJgqy31tUjF+OdqiMOH8zk08mK8ED/Z3sflQbo/YaBgSVwAiCBHWJ6+ZQI9HrDx+ nnVNX9ivFukySPjcqM9Df1TAIHvZTN/OaO7RL2ckutH6yN9K1GOts/zDsQxIIZSOZBKB frVQ2VBy6h5LSVspcfzXODjQB1YWV6i+OshAtaElfnQP1PL1IduiKttThm30nyJectxt CAsA== X-Gm-Message-State: ACgBeo3r87zs85hxGEUbeTgUNSAquEv54tMpf8lZSjYW7YwxyqZW3dsB 0BnN+1jJ+OwrJS44ytpizFU= 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 Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Huacai Chen , WANG Xuerui , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Jonas Bonn , Stefan Kristiansson , "James E . J . Bottomley" , Helge Deller , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Chris Zankel , Max Filippov , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, akpm@linux-foundation.org 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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