Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2367620rdg; Sun, 13 Aug 2023 23:16:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhkpLgJBuAq6oRkntis0bhDDfN+zz0IYkHRErUP2QsZtpnn7Z4F0iof7r8V5HY9ta5iuys X-Received: by 2002:a05:6512:6cb:b0:4fe:ecd:494f with SMTP id u11-20020a05651206cb00b004fe0ecd494fmr6264702lff.33.1691993768524; Sun, 13 Aug 2023 23:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691993768; cv=none; d=google.com; s=arc-20160816; b=N+2Kww63M40jzduXLEjjsHm/KNcUW4aV8A2pyJGuKO7dMmJr3DlcYos882tSBkA5qq fHEZz6FJgWF1woYys0OwvwKNaF1a/cOm7q7MX0mLiRpTXkHbnQ+wQvHPhivwHanGoZ5/ Mg/dzeExZUgMNV5NG2IzR7DIsc4mmk7VNhAx1t5Wsfe9LhAtxtJJV+djcdGMrrnp4IMZ 89CKFToY11uQP2KQamaRwviBu0gwPrxCb9iQ6gvqkTiZnrqTd9ff60Jafxy16JEBJB0Z RN23E740P2nbvOdTAZez9yUJdupoQo4aCLa8Jz1KDrfzi67owaVDZZNIguTuu3uYbACQ l/8g== 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=1PALvQg1/aIZ8GEAHUzcy3OHMYtgK7Je/j9K38/8iI4=; fh=zoicnZrSUumwSLub61Q/qA0LDg7Zj98grk3RszA4Weg=; b=SH/Tud7YZxU79lFt5eiAe1iF60N7kRQu8hu8w2DQceuszgHqpobO+gtoSn47P+n4kK rblHLBz2xH+fP3IjMOlXH+EpiYvob7QiUMx8q3dgCiIryP3JhwjXKp5fa4yx+6RvN2/Y 9CPq5bO+bFTSioqrepAvEWnju1yTJYBaDu+46JsVf0FhiEyzcJvMMD3shM8Tyva4NKnZ x9F/RQ8yzEDbswicBmuz2DTQaWaGipAX76DtKrlu9BuLxWT9NavZx0l1k2irJWCYSx0D meVrhGtn8/1Y24Zpopj03Z5adZrtgGlGGxFWQrPZXJnqvrkyZULcBZu63rE3Tm8g1+ry ksSg== 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 be25-20020a0564021a3900b0052541d374f8si3496483edb.249.2023.08.13.23.15.44; Sun, 13 Aug 2023 23:16: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 S233054AbjHNDxk (ORCPT + 99 others); Sun, 13 Aug 2023 23:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbjHNDxI (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 C8EE0E6D; Sun, 13 Aug 2023 20:53:06 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Cx2eohpdlkw+UXAA--.44452S3; Mon, 14 Aug 2023 11:53:05 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxriMdpdlkLVBZAA--.48641S5; 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 3/3] MIPS: Remove noreturn attribute for nmi_exception_handler() Date: Mon, 14 Aug 2023 11:53:01 +0800 Message-Id: <1691985181-28363-4-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--.48641S5 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7XFy3Ar4DKr1xKF1DGF4DAwc_yoWfGFcEgF 1Ivw1xWrnYyr1Svr1UCa95WFy3Z3yUWF4Ika1qqrZxKas8G345G3yqvrn8Xrn5XrnYy398 Xry5Gr929ay3CosvyTuYvTs0mTUanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvT 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 Additionally, also remove noreturn attribute for nmi_exception_handler() due to it calls die(), otherwise there exists the following build error: arch/mips/kernel/traps.c:2001:1: error: 'noreturn' function does return [-Werror] Signed-off-by: Tiezhu Yang --- arch/mips/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 62d6c4e..4f5140f 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1986,7 +1986,7 @@ int register_nmi_notifier(struct notifier_block *nb) return raw_notifier_chain_register(&nmi_chain, nb); } -void __noreturn nmi_exception_handler(struct pt_regs *regs) +void nmi_exception_handler(struct pt_regs *regs) { char str[100]; -- 2.1.0