Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2316302imi; Sun, 24 Jul 2022 15:29:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vvPR7FmeSfkPlEzBjFmix/xkY3d4tfWshv/IipG6q4QDsLw2VyYGyAjHu7/8UHc1e7g+1w X-Received: by 2002:aa7:93a5:0:b0:51b:e0f8:97a6 with SMTP id x5-20020aa793a5000000b0051be0f897a6mr10034408pff.44.1658701767476; Sun, 24 Jul 2022 15:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658701767; cv=none; d=google.com; s=arc-20160816; b=zPxf8YR6CGXP9ylzwHfJvxmdB2EcTgqPdM3hL+ecDZH9SSA+HAs2sQnygUyqxnjOyK lzFS6kAZX6mU2Gub1XLPmaCRgo6CAhI/WR3Q1tArrbz9KcgcPWA1/dWDOmIxOfTxlwKj Zfit5Bzw5m2rxVSLwAduUly93qbwly0YZhy+hDauXAXc4KfJ1ordasLjmmGqoeBcde5V TORbOIfOKdZtkBI8J9SYxvhOB+DMX6EEF69VBUuhvEJGiBRTMLYyN/PeIsI4IWkWMJe4 7jPZ0WM2WCMs/aAa/xEBUyD1a7orfrFSjwmbB8iJkeH5YZteageFd3yT6zuROFtbnEqy BDkw== 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=u+QG1WPTBhgMcy5iDi95C73UfBd/IOZukOSRF5Wx0vw=; b=SwlZIB1Zd4yK0m2TUlOG85FDnhKNd9zE6CqdU9xzZVRQlEjeyOiV7lm3Fhhw9PAqVk Z98WLRbp9W4Jxac9hye6jtjkKE9ev5RO+Fo18qhW9KIEy/BDcSude+UQpqMV1KyYG9AU fmPCmNmwUzVwr1h/Bi3bEiw/CztENNoS9JNUL98ZT9mHBeiGdfJZGKiApp5leyxMyWJ7 qkjwcp3IPfp4KDbHr19yIo0sS92xDkSEf3QWqG5Aix937yuVlSOPnRuu2uiODqZf885N rEP8vYOisMXdk9fpsq0TowdiqP9/8FtzMAcqpURKO6EimuPDEQZh/ozZkxGSIYz4y2XQ qQ7g== 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 n27-20020aa7985b000000b0050fac0168c6si11256137pfq.49.2022.07.24.15.29.11; Sun, 24 Jul 2022 15:29:27 -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 S229649AbiGXWV6 (ORCPT + 99 others); Sun, 24 Jul 2022 18:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiGXWV5 (ORCPT ); Sun, 24 Jul 2022 18:21:57 -0400 Received: from luna (cpc152649-stkp13-2-0-cust121.10-2.cable.virginm.net [86.15.83.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5CBF583 for ; Sun, 24 Jul 2022 15:21:55 -0700 (PDT) Received: from ben by luna with local (Exim 4.96) (envelope-from ) id 1oFjyz-002JZ1-0g; Sun, 24 Jul 2022 23:21:53 +0100 From: Ben Dooks To: linux-kernel@vger.kernel.org Cc: maz@kernel.org, tglx@linutronix.de, Ben Dooks Subject: [PATCH V2] irqchip/mmp: fix missing extern init code Date: Sun, 24 Jul 2022 23:21:52 +0100 Message-Id: <20220724222152.551850-1-ben-linux@fluff.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,FSL_HELO_NON_FQDN_1, HELO_NO_DOMAIN,KHOP_HELO_FCRDNS,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC, SPF_NONE autolearn=no 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 The functions icu_init_irq and mmp2_init_icu are exported from this code, so declare them in the header file to avoid the following sparse warnings: drivers/irqchip/irq-mmp.c:248:13: warning: symbol 'icu_init_irq' was not declared. Should it be static? drivers/irqchip/irq-mmp.c:271:13: warning: symbol 'mmp2_init_icu' was not declared. Should it be static? Signed-off-by: Ben Dooks -- - v2: added pxa machine includes into this patch --- arch/arm/mach-mmp/mmp2.h | 2 +- arch/arm/mach-mmp/pxa168.h | 2 +- arch/arm/mach-mmp/pxa910.h | 2 +- include/linux/irqchip/mmp.h | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mmp/mmp2.h b/arch/arm/mach-mmp/mmp2.h index 3ebc1bb13f71..7f80b90248fb 100644 --- a/arch/arm/mach-mmp/mmp2.h +++ b/arch/arm/mach-mmp/mmp2.h @@ -5,13 +5,13 @@ #include extern void mmp2_timer_init(void); -extern void __init mmp2_init_icu(void); extern void __init mmp2_init_irq(void); extern void mmp2_clear_pmic_int(void); #include #include #include +#include #include "devices.h" diff --git a/arch/arm/mach-mmp/pxa168.h b/arch/arm/mach-mmp/pxa168.h index 34f907cd165a..c1547e098f09 100644 --- a/arch/arm/mach-mmp/pxa168.h +++ b/arch/arm/mach-mmp/pxa168.h @@ -5,7 +5,6 @@ #include extern void pxa168_timer_init(void); -extern void __init icu_init_irq(void); extern void __init pxa168_init_irq(void); extern void pxa168_restart(enum reboot_mode, const char *); extern void pxa168_clear_keypad_wakeup(void); @@ -18,6 +17,7 @@ extern void pxa168_clear_keypad_wakeup(void); #include #include #include +#include #include "devices.h" diff --git a/arch/arm/mach-mmp/pxa910.h b/arch/arm/mach-mmp/pxa910.h index 6ace5a8aa15b..7d229214065a 100644 --- a/arch/arm/mach-mmp/pxa910.h +++ b/arch/arm/mach-mmp/pxa910.h @@ -3,13 +3,13 @@ #define __ASM_MACH_PXA910_H extern void pxa910_timer_init(void); -extern void __init icu_init_irq(void); extern void __init pxa910_init_irq(void); #include #include #include #include