From patchwork Mon Jan 18 13:20:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yanteng Si X-Patchwork-Id: 12027341 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5388C433E0 for ; Mon, 18 Jan 2021 13:21:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 915D72073C for ; Mon, 18 Jan 2021 13:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404344AbhARNVE (ORCPT ); Mon, 18 Jan 2021 08:21:04 -0500 Received: from mail.loongson.cn ([114.242.206.163]:35658 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730443AbhARNU6 (ORCPT ); Mon, 18 Jan 2021 08:20:58 -0500 Received: from localhost.localdomain (unknown [112.3.198.184]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxe+T2igVgYswGAA--.10336S2; Mon, 18 Jan 2021 21:19:51 +0800 (CST) From: Yanteng Si To: Thomas Bogendoerfer Cc: Huacai Chen , Jiaxun Yang , Yanteng Si , linux-mips@vger.kernel.org, Yanteng Si Subject: [PATCH] MIPS: IRQ: Add prototype for function init_IRQ Date: Mon, 18 Jan 2021 21:20:09 +0800 Message-Id: <20210118132009.2642893-1-siyanteng@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0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brMaUUUUUU== X-CM-SenderInfo: pvl1t0pwhqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org This commit adds a prototype to fix error at W=1: arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] Signed-off-by: Yanteng Si Reviewed-by: Huacai Chen --- arch/mips/include/asm/irq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h index c5d351786416..f021de661c3a 100644 --- a/arch/mips/include/asm/irq.h +++ b/arch/mips/include/asm/irq.h @@ -20,6 +20,7 @@ #define IRQ_STACK_SIZE THREAD_SIZE #define IRQ_STACK_START (IRQ_STACK_SIZE - 16) +extern void __init init_IRQ(void); extern void *irq_stack[NR_CPUS]; /*