Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2453509rdg; Mon, 14 Aug 2023 03:08:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH76EL5RGLZvloGgNevq5ehjnt8uExBUXjbvXvoByqDgeWjR/SEzyUVxCsx94zj4Zk9FWIN X-Received: by 2002:a05:6a20:5499:b0:11f:2714:f6f3 with SMTP id i25-20020a056a20549900b0011f2714f6f3mr9638655pzk.11.1692007693646; Mon, 14 Aug 2023 03:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692007693; cv=none; d=google.com; s=arc-20160816; b=eWU/4ezqhYAPfGw88gJqkdOeLIJvBrRp6FalbmNpaiaeyu7G0aeXgLzk/Mt7ewUQaf ug2lxrCEUUkiwNoim0j5EKShsyJDmuSlnM2YmvhxDewpyRi8cTTiaQfOKcvRzjFlvQGd pFMmJFEXmAk5wJwoHu2Z1zClOWH1+UCBJA+icIUms9zho5FdDt5QFR04rRovetgVdYq8 rjtmX6I3UyiJLNCsjyjkCGa+1Ko3dADubI08QwElFf/VwBokQ9kBTbV1bqr5QPPmTUqQ pMFVrzEtuyx64pbNHg1u5bJJLx3pytLHmiHJDmNGHqaWDSPyd4AsHev5D45yR+fp4Pn9 oOmg== 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=DUflVeUsqCrqCuYxCY94KTsAjOkIxny3fFo4Ct5Kwsg=; fh=SZ39SBhiFik3r2Qby0lfj8dSyaj5PbEfEri4a6Oa5Uc=; b=DbeqajyP2hqIfnpoIWm07u/xgVDeLPrQsV1/4JbVJk0aqpRihiakCTm5xuT5vyG4e2 TL3kwpalD2nWjDN1/8AaiIZPHwGs+eKYPjXcy0xxbcPYv9pkkD0H1u5Gjbx59zn0fzRk cezHXuVMnPS56uBGdunlLwZdjG1jVqGlUtmUMlXkEEXe1sgdn/oI/1IEZK2woeHMN+O2 /BE3LpLL33SBmpkxStt42D8kK0ivOQUBKaC8D5eiXO2Z02zezrv7u+ciJP2cautqI0SI Pe/UDhCGm9UU7+ajwPBLFRw/b9lidtgohdpRYnCVyJywJl8NrWVSSSiOPWw7OUxmdBYy j76A== 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 l1-20020a056a0016c100b006874c2f0a36si8001872pfc.156.2023.08.14.03.08.01; Mon, 14 Aug 2023 03:08:13 -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 S233888AbjHNJf3 (ORCPT + 99 others); Mon, 14 Aug 2023 05:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233795AbjHNJfN (ORCPT ); Mon, 14 Aug 2023 05:35:13 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C11AE62 for ; Mon, 14 Aug 2023 02:35:12 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Cx7+tO9dlkIhUYAA--.48651S3; Mon, 14 Aug 2023 17:35:10 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxLCNN9dlkgLtZAA--.5447S4; Mon, 14 Aug 2023 17:35:10 +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 v3 2/2] LoongArch: Modify the declaration for die() Date: Mon, 14 Aug 2023 17:35:04 +0800 Message-Id: <1692005704-19126-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1692005704-19126-1-git-send-email-yangtiezhu@loongson.cn> References: <1692005704-19126-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxLCNN9dlkgLtZAA--.5447S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Xw47AFy8GFWfJr48tFW7WrX_yoWkGrg_u3 W2yan5ur48GrWrZ3Z8C34fAr1UGw48WF93tF17tFWxJa4aqr4UCw48C3srAr4q9r4qvF15 CFyktF98AryS9osvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbaxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q 6rW5McIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7V AKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v2 6r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17 CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26ryj6F1UMIIF 0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx AIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVF xhVjvjDU0xZFpf9x07jjJPiUUUUU= 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 164bc90..f3ddaed 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 *); +extern 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