Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2368798rdg; Sun, 13 Aug 2023 23:19:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgKFdxLjCLu7yx53f4iQ7oo89g3jAO7NYIbGMFyFN0C9jFZvto8kdNl812jzAaCLp8MBGk X-Received: by 2002:aa7:d4c4:0:b0:525:689d:670d with SMTP id t4-20020aa7d4c4000000b00525689d670dmr778507edr.17.1691993984313; Sun, 13 Aug 2023 23:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691993984; cv=none; d=google.com; s=arc-20160816; b=Z+fFdUqqQfKe/wfrR3b5Z7QB0MSbNPHQ6LMchFI6YiqoQHRSvFF+Ik1FnlcS7RXLBN TeEn03Oy2dVWEOieHi9yvQsxUnXCIZUUdpIsJrEfxt+M1j3G1FeHgmmhEejPivA5XzTD zzhVtJUd4NbhUjy/eRx6hAtGFFzUQqjMwBch2FO7liqFMMHy129OR9B2gMNKgk9SlUhf xzJJC5EroPITcNEY4lSzyz1YSDOTtJDu9TivfJt99wUakmoeqCZ3mNkgP7XwK8u54MDS mi5mCNrKHbozWKQJiwFhSLZZ3gws5K2nBrbiSIBu1CfS7FZFhogGj7PyCZ1DdHLEDg20 skbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=kr4PdmhCG/F1XIEixtLJa+eRoYgHjfRwKTVsH0jeH4c=; fh=xsw9hDXk1hPAFaI/0UKksaRTR+Crok1LucbcaYezQbY=; b=aBFqvNTV+fA9uOquUqupyOPYROwZn46qqyGWCv8WxOkD4GXTzgx4bgIT3LAo05XQ3D QSQ5jculW7CnF4qfTqOZbzxSKQ6rE2O/JA9BPtq2cDAfgpxO25eXWjea12u5Jg5hQ83E jRPWLnzfX7T2I7yf/8bv5fmYDxRwkaRtP59gQACnBy+DATvf4awJBjN8eCnOWpWC99wb X/jCbE+ohHctRfIw9malYPrDs4KKRx2EEx4ciKZUIeYmVl2pQoRHiY6BWq9Vsg9qaICp 8iwrADOB4tIQXAl/J+dGAm+Cc6hZ7MeNAmyQl0gBWQK1oVbonpJ5ZhaMHi/TvEFV3bK3 oMDg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020aa7d151000000b005254423c9dasi3250479edo.197.2023.08.13.23.19.20; Sun, 13 Aug 2023 23:19:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231701AbjHNDGk (ORCPT + 99 others); Sun, 13 Aug 2023 23:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbjHNDGH (ORCPT ); Sun, 13 Aug 2023 23:06:07 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D260C124 for ; Sun, 13 Aug 2023 20:06:04 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxyeobmtlkHd8XAA--.39760S3; Mon, 14 Aug 2023 11:06:03 +0800 (CST) Received: from [10.130.0.149] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxxswamtlkd0RZAA--.558S3; Mon, 14 Aug 2023 11:06:02 +0800 (CST) Subject: Re: [PATCH] LoongArch: Remove noreturn attribute for die() To: Huacai Chen References: <1690871581-23944-1-git-send-email-yangtiezhu@loongson.cn> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn From: Tiezhu Yang Message-ID: Date: Mon, 14 Aug 2023 11:06:02 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1690871581-23944-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Bxxswamtlkd0RZAA--.558S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoWruw4UAw43WFW8Zry8AFW8uFX_yoWDCwc_Cw 1xJa93Kw48uFZYg3WDGa4fXFykWw4UKr95Xw1DXrW7W34ayws8Ww4kur9IvF48XFsY9Fs0 kFZ3ta43ArnF9osvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_ Jw1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AK xVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUc0eHDUUUU X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 08/01/2023 02:33 PM, Tiezhu Yang wrote: > If notify_die() returns NOTIFY_STOP, there is no need to call > make_task_dead(), we can remove noreturn attribute for die(), > this is similar with arm64, riscv and csky. > > While at it, modify the die() declaration in ptrace.h to fix > the following checkpatch warnings: > > WARNING: function definition argument 'const char *' should also have an identifier name > WARNING: function definition argument 'struct pt_regs *' should also have an identifier name > > Signed-off-by: Tiezhu Yang > --- > arch/loongarch/include/asm/ptrace.h | 2 +- > arch/loongarch/kernel/traps.c | 12 ++++++------ > 2 files changed, 7 insertions(+), 7 deletions(-) There is a similar patch for MIPS, here is the discussion, https://lore.kernel.org/all/alpine.DEB.2.21.2308132148500.8596@angie.orcam.me.uk/ As suggested by Maciej W. Rozycki, I will update the commit message and split it into two patches, then I will send v2 later. Thanks, Tiezhu