Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5402302rwb; Sun, 4 Dec 2022 21:05:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qA4Usp9J+Amr+1u3zADXhxo6Vxs4YU5vP8EWhCk4B2TTqPxTxk+g+vYvHdXSeWQAAU3cN X-Received: by 2002:a17:906:c042:b0:781:541:8f1d with SMTP id bm2-20020a170906c04200b0078105418f1dmr69354708ejb.117.1670216737346; Sun, 04 Dec 2022 21:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670216737; cv=none; d=google.com; s=arc-20160816; b=PjWe4SRHvZcp58eKMNoaUjnhy9NknEG5r7bDDiYgy1/6J06jTfCphCFDy/1+n0LUGP vpbWsBuhZ+LPpOGHy5IqngGuunHJ32LB6gNNejF31o2VB/nVAEEFe0ZwiHOg4HMPQqa3 mQxFpDRlcpp+o0CvPiw8DREPTR1UnvhEBbadWBNzutnoNdPilPkrMZbjUBI3r2yj+oL1 PrCYXXY/AD48+owHVO4/FPU4HMTXAxvK6UIlncQdVosuRhuyQufF3Aju934sGA+9xygG 6brsFVeaJrqHECEsPbN8A9matcz+ZFL4HCMkPieg/Y0IT+lo30qlW4TCocTTMKwW2JyM tI6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=q77DzulIpOcuFYKKmVG2SIQ60DKFJEslTgil6p6414Y=; b=YIPi7Cvepb3W/OXiwnTPFZ+v2yE95P6zEHl6nf2BkM5xZYcGPG+F8v0+GXB3l8VjNb BbtCdBGilGgCbLaMPXIXLt4Mq+r99MXVW7H7+MRoHAnB3gIyxr8FrKr1j3nwVOTj9qiD zjnb9IoWpUKLYmsm77GZjP7FJ4JnpmdsKZY8Z6BOsrJmxU1Z0+72Ep4i4wZW5xcIqW6U EyIruWw6Cch8Dct/lacq2lmgPHBYZb3QimjteXelATS233iZQUa7lYF8pyX8pUeH/teO TNpC82Xc8OMQQK/kks1W3giB4XoZ4skJBUQ3bZ+AuHS7Mpl+Lnz4pvJwqAfSqLEAijBi 6Jsg== 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 sb40-20020a1709076da800b007bebf105450si12503926ejc.235.2022.12.04.21.05.18; Sun, 04 Dec 2022 21:05:37 -0800 (PST) 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 S231415AbiLEEuW (ORCPT + 82 others); Sun, 4 Dec 2022 23:50:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbiLEEuU (ORCPT ); Sun, 4 Dec 2022 23:50:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32324BCB7 for ; Sun, 4 Dec 2022 20:50:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C8300B80D5E for ; Mon, 5 Dec 2022 04:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01B86C433D6; Mon, 5 Dec 2022 04:50:13 +0000 (UTC) From: Huacai Chen To: Thomas Gleixner , Marc Zyngier Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Xuefeng Li , Huacai Chen , Jiaxun Yang , Huacai Chen , kernel test robot , Peibao Liu Subject: [PATCH] irqchip: loongarch-cpu: Fix a missing prototype warning Date: Mon, 5 Dec 2022 12:47:08 +0800 Message-Id: <20221205044708.2054022-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 1, Rename loongarch_cpu_irq_of_init() to cpuintc_of_init() in order to keep the same style as the ACPI version. 2, Fix a missing prototype warning by adding a "static" modifier. Fixes: 855d4ca4bdb366aab3d4 ("irqchip: loongarch-cpu: add DT support") Reported-by: kernel test robot Cc: Peibao Liu Signed-off-by: Huacai Chen --- drivers/irqchip/irq-loongarch-cpu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-loongarch-cpu.c b/drivers/irqchip/irq-loongarch-cpu.c index 00a47c011ec7..9d8f2c406043 100644 --- a/drivers/irqchip/irq-loongarch-cpu.c +++ b/drivers/irqchip/irq-loongarch-cpu.c @@ -93,7 +93,7 @@ static const struct irq_domain_ops loongarch_cpu_intc_irq_domain_ops = { }; #ifdef CONFIG_OF -int __init loongarch_cpu_irq_of_init(struct device_node *of_node, +static int __init cpuintc_of_init(struct device_node *of_node, struct device_node *parent) { cpuintc_handle = of_node_to_fwnode(of_node); @@ -107,8 +107,7 @@ int __init loongarch_cpu_irq_of_init(struct device_node *of_node, return 0; } -IRQCHIP_DECLARE(cpu_intc, "loongson,cpu-interrupt-controller", - loongarch_cpu_irq_of_init); +IRQCHIP_DECLARE(cpu_intc, "loongson,cpu-interrupt-controller", cpuintc_of_init); #endif static int __init liointc_parse_madt(union acpi_subtable_headers *header, -- 2.31.1