Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2352906rdg; Sun, 13 Aug 2023 22:30:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2qnj6NeBOtdQBjc0DCdrQO06Hu/jaNa/MQz4V1+ar9aK1TNoXk09MrHsNU6Yd3rcf7s83 X-Received: by 2002:a05:6402:11c9:b0:51e:5bd5:fe7e with SMTP id j9-20020a05640211c900b0051e5bd5fe7emr14014044edw.17.1691991000824; Sun, 13 Aug 2023 22:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691991000; cv=none; d=google.com; s=arc-20160816; b=LDxN2CDYQxo1YIVL1EyG6DLKxtWiGDJgBkUZFSVBWadUaQos4iDqVS0MeQBhy4bhEE MwVZp40iehcYSWG2qIb5sUyFLE4jZmfho0AIj3GWrgFlGCdp9ryx5V35Dj7ACSf7QQWL ihvJxXGaYxTQ83daXHrF3ShmxmTq3N+/WOVdi7QftAQWD0PMCOk2zEn7feeEVEhxy/hs 3eGxEtAyOvWZd6rcG/DQdeIz0ybXsvJ/2AQzAv1EMGuQLRiQnGqc59O327ESoM6thIbi Vm2WlG4bXP8n4ZrbqcrQczYORanR8w92aZragt5nOMC336c3CEAYKlPkaJ6haKTSFZWn 7eHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=ODPYEF1JtX6hztjms3PTOCnToGUQlji6gqsNpPSSjmY=; fh=zoicnZrSUumwSLub61Q/qA0LDg7Zj98grk3RszA4Weg=; b=X6kAiHHCsauso9O2X1O2rO5Bx50ShwCxTpImX16WJ9oMU3eTg+bzoyiCllHlw7Mdq4 uwkp4Z/BS9ZIVJTMz8W2NdoUrW/1kUCtrXgx+htS+8Bvo5rJuq0pjf7McaD8tTxhbQNT f40eR5pZmofo5MJkBASNbsWXmKKSS/TkzHiDzrjQkMf/w6lZAsPsuRvgzAeKqnufpGXD TJKP4rzPi83wPOQgqU8FwaZFNfGNroZi8klqZGJt5uw9vEFFAYw1r/jjtqtmrELc4nBP +l6o3fE5zB8fIGwR5o6XRfMT+yhCKnKoncHoUk0SV5bp7wBpr0WWN/fUzcPsMYCiJgI7 Xh6A== 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 i17-20020aa7dd11000000b005222ae088b1si7297729edv.271.2023.08.13.22.29.34; Sun, 13 Aug 2023 22:30:00 -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 S233060AbjHNDxn (ORCPT + 99 others); Sun, 13 Aug 2023 23:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233025AbjHNDxI (ORCPT ); Sun, 13 Aug 2023 23:53:08 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C220E5B; Sun, 13 Aug 2023 20:53:06 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxXesgpdlkv+UXAA--.44201S3; Mon, 14 Aug 2023 11:53:04 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxriMdpdlkLVBZAA--.48641S4; Mon, 14 Aug 2023 11:53:04 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: "Maciej W. Rozycki" , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v2 2/3] MIPS: Modify the declaration for die() Date: Mon, 14 Aug 2023 11:53:00 +0800 Message-Id: <1691985181-28363-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1691985181-28363-1-git-send-email-yangtiezhu@loongson.cn> References: <1691985181-28363-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxriMdpdlkLVBZAA--.48641S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Xw47AFy8GFWfJr48tFW7WrX_yoWkJFXEk3 W2ya18uw48Gr9ava4rWw4xJFyUG3yUuws7tr18Jas7Jasavr4UCay8CrnrJrWDuw4qvr15 uF9xtryUAFySkosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb3AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q 6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_ Jrv_JF1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1V AY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_Xr1lIxAI cVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42 IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIev Ja73UjIFyTuYvjxU4OzVUUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 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/mips/include/asm/ptrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h index daf3cf2..14d2ee9 100644 --- a/arch/mips/include/asm/ptrace.h +++ b/arch/mips/include/asm/ptrace.h @@ -159,7 +159,7 @@ static inline long regs_return_value(struct pt_regs *regs) extern asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall); extern asmlinkage void syscall_trace_leave(struct pt_regs *regs); -extern void die(const char *, struct pt_regs *) __noreturn; +void die(const char *str, struct pt_regs *regs); static inline void die_if_kernel(const char *str, struct pt_regs *regs) { -- 2.1.0