Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2388472rdg; Mon, 14 Aug 2023 00:16:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwpPuZXhN94ojKbzfdNotnaPqK6DuwkkXgBFaoDrU4XdnsM4b3UKticsva7pbAU0dyjNdK X-Received: by 2002:a05:6a21:3e0b:b0:137:3eba:b7fb with SMTP id bk11-20020a056a213e0b00b001373ebab7fbmr6889309pzc.2.1691997364385; Mon, 14 Aug 2023 00:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691997364; cv=none; d=google.com; s=arc-20160816; b=yuEjvmXBQZdjxpadAuj7xoauFIR/RaVpzs224HD344hSIGfP7euGSkRCFJKGAthMGh q5L+hdb+owSP6R0vtveq4Gi4lketwJwUXEFWEkSJJQ+DmJYjiBhn+yJiv9dJ9eLFphKZ Ew/en7IS0P7OkO4ZjYzfD+SbbIXek2Nitp1f3FO7M35u122QmqLYh+ctzXY5yPt2tyCI SRfOLo1/WedJfeXy0k5TpbUF4TgnejFSyA2V5JYWXajmLijzBgaq6AGeGY4W8mNBDFPA x76i54OWB03H242eaeoRYH8Uwg+wIfTcyRH3nSZhlxukOiywZ5rmEyKIuJDw+lUvIT1q jZEg== 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=J3QrkZQEt7Gs7nkY3dBsKikTuwOb6/zWrmlA6qw0Tg8=; fh=SZ39SBhiFik3r2Qby0lfj8dSyaj5PbEfEri4a6Oa5Uc=; b=uPfB22zA28Rz8wadEbwjMJptrqKxHGoEtvnYJDm0bl4Reb8GHmZVM7KbNtazwCeCAU NGzwLDPq32kHTgX2/s+n/Qb560S6otAQK5Q7/61FbFMH+07ABT66qrtalirVyY02avdc eQo4Zbw01WM3LIdvvJ9Ujd57JZ1pHx/YgZrcjVkI67hHBTeW93FrZBHzrkSB2YFAPPx/ 0oJCcSyJrO8Fl/asQIRWVasF83/paJDfS1d3hGS0ArzFRWy92B4zMuQvHzi2He6uN61t EGqepGZYTyRUr1ihNi2q8BMXT8a+PPrmdqs/izre9w5vmVFd09kKYBs3nfF8xqc33ZC0 ipOQ== 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 p23-20020a62ab17000000b006683174a49csi7452712pff.198.2023.08.14.00.15.52; Mon, 14 Aug 2023 00:16:04 -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 S233178AbjHNEv4 (ORCPT + 99 others); Mon, 14 Aug 2023 00:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbjHNEvW (ORCPT ); Mon, 14 Aug 2023 00:51:22 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5181BE71 for ; Sun, 13 Aug 2023 21:51:16 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxRvHBstlkBOsXAA--.49454S3; Mon, 14 Aug 2023 12:51:13 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxviO_stlkqmBZAA--.48090S4; Mon, 14 Aug 2023 12:51:13 +0800 (CST) From: Tiezhu Yang To: Huacai Chen Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v2 2/2] LoongArch: Modify the declaration for die() Date: Mon, 14 Aug 2023 12:51:11 +0800 Message-Id: <1691988671-835-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1691988671-835-1-git-send-email-yangtiezhu@loongson.cn> References: <1691988671-835-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8DxviO_stlkqmBZAA--.48090S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Xw47AFy8GFWfJr48tFW7WrX_yoWkGFg_u3 W2yanY9r48GrW8Zwn8C3yfAr1DGw48WF93tr17tFWxAa4aqr4UCw48G3srAF4qgrWvvF15 CFyktFy5ArySkosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT 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/loongarch/include/asm/ptrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/include/asm/ptrace.h b/arch/loongarch/include/asm/ptrace.h index 35f0958..2101301 100644 --- a/arch/loongarch/include/asm/ptrace.h +++ b/arch/loongarch/include/asm/ptrace.h @@ -162,7 +162,7 @@ static inline void regs_set_return_value(struct pt_regs *regs, unsigned long val #define instruction_pointer(regs) ((regs)->csr_era) #define profile_pc(regs) instruction_pointer(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