Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp667086rdh; Tue, 22 Aug 2023 07:23:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPycrcoBNWEvaUKvnFwO0C4zIn7I76aPczkJrO/PoRCy3fVNM+rgu7sBS5Eh48gazJybFS X-Received: by 2002:a05:6a20:12ce:b0:140:2805:6cce with SMTP id v14-20020a056a2012ce00b0014028056ccemr10005619pzg.19.1692714188565; Tue, 22 Aug 2023 07:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692714188; cv=none; d=google.com; s=arc-20160816; b=V7dFDJ2SZ50ic+mYRzJlZ/OavprhopdSpTIiKXZhTqvzAnGkyh7ZNzE0zZovCVdGsz mHBxtctF6Kh9gnQLbgEUtDsR9nGN89XyotGjruAvRYSdEXhqXdKQzJlW5lno71Q80f4K 6HFSdF7HeFHxLPH08Ihxixf78i4v0yxoarWYxALobcjrro4CkBBvyTtx+ng1fR7GcB+V l8DR8zX6rIPzMWjDT2owZ2sUaU5whiKLIGKRW2rbi8Kbllo/e+u3O4c6J1EPEzT5erUy XRlGjDhGGp/594u1nWZxxvmsOnCHzZv0AafG2+vViHlkimEavF6wj6n27HTsnzODyXtT sZ4g== 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=PwbbDLPGbeE46xrf8L4w5z2WAu4hFJ7Own/eIrtY+dw=; fh=SZ39SBhiFik3r2Qby0lfj8dSyaj5PbEfEri4a6Oa5Uc=; b=lljWxDxWpwe2z0TKL4GWvZljQc4mfJ0gRKNnXflDtBWDEz/y6BCzyXCLyKyVoXPTQ0 iuNJTakBWYh79ZvYhsx2M+sPqo1Tfy0q1IR1gRxFlgLdGRnRLv3Si10fFowuuqnH78jN 79DE7p/cE9aBZELGQXTpeH2pdc60tC12Tn5SoJ8DI9laOytN9Z2y4pY7XeY2+AneYwX1 5FWezSVXxgXjACR0iqPX1BiUY5kzR/JLSq9kcggR3gxviXPIPk1BWiwdR93JHBG//ztA MzhSVg5urRTHgnQPW5oPD56KBKVg1YIFRuHhWQ/TO04JBzDPMjGCdRyqbVw0KFIZWdTQ 6kIA== 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 l193-20020a6391ca000000b0056963f23048si6659854pge.84.2023.08.22.07.22.55; Tue, 22 Aug 2023 07:23:08 -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 S233970AbjHVIyH (ORCPT + 99 others); Tue, 22 Aug 2023 04:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233704AbjHVIyE (ORCPT ); Tue, 22 Aug 2023 04:54:04 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1F3B1B7 for ; Tue, 22 Aug 2023 01:54:02 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxtPCpd+RkRtwaAA--.55667S3; Tue, 22 Aug 2023 16:54:01 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxvM6ld+RkwS5gAA--.37979S5; Tue, 22 Aug 2023 16:54:00 +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 v4 3/3] LoongArch: Add identifier names to arguments of die() declaration Date: Tue, 22 Aug 2023 16:53:57 +0800 Message-Id: <1692694437-27077-4-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1692694437-27077-1-git-send-email-yangtiezhu@loongson.cn> References: <1692694437-27077-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxvM6ld+RkwS5gAA--.37979S5 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gr13ZryDCr4rXw4DCrW5twc_yoWkXFb_u3 W2yan5ur4xGrWrZ3Z8C34fJr4DG3y8WF93tF1xtFWxAasIvr4DCw48G3srAr4q9r4qvF45 CFyktr98AryS9osvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb3AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV 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,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 Add identifier names to arguments of 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