From patchwork Mon Jun 17 12:24:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10998953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B121F13AF for ; Mon, 17 Jun 2019 12:25:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B8A288E8 for ; Mon, 17 Jun 2019 12:25:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9519F288F6; Mon, 17 Jun 2019 12:25:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4AAE9288E8 for ; Mon, 17 Jun 2019 12:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A1doxh1A2oHGTQ5BReEcbTHygrAe8pcCAiBKwvmhQW4=; b=D08W9L3wRkk67A EWR/0cmKH6AGap1coOn4Anrr2loj8jzMS7pye0ShWf5vteuLZVBoFubN11JtfUckYuTJ4EyDmMJyC svbLSBwhMB7enxEZAw30HnOF9RRjRSVQ7/T3en5AZyiebpgaDkSGIGbLhgEHh1p5Kexz+6zkoUWWQ FSwElQEtQeZ/GSd+Q0S6UlbKpMJEmAgLPCqLqIjFg5zkMnBmWWatcnsQm8zsI1Jb36Ros4JlUc5Hp ASUlhxgqrT+DaJ7JjHkIhZbOMJy9Um+AAs02CBJTY/i+cyQTpXBqj/MRZ6uHbcsmMTYsvbBO0XKaG A3dt1buVyg2k244r/N8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcqhZ-0007K2-Lr; Mon, 17 Jun 2019 12:25:33 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcqhW-0007JJ-Q7 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2019 12:25:32 +0000 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1N95Rn-1ietfb3wbn-016B0V; Mon, 17 Jun 2019 14:25:29 +0200 From: Arnd Bergmann To: arm@kernel.org, Linus Walleij , Imre Kaloz , Krzysztof Halasa Subject: [PATCH 2/3] ARM: ixp4xx: mark ixp4xx_irq_setup as __init Date: Mon, 17 Jun 2019 14:24:31 +0200 Message-Id: <20190617122449.457744-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190617122449.457744-1-arnd@arndb.de> References: <20190617122449.457744-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:CfnD4zPWOhfoEEt+/aRsFBaVUzGsrQvBx7m6qk640ipp4z5nl4t TDWUJOpBWr3Mi5Bwm6O1XCkdR1gUsL9Xr9MyjAbvJtIRmWaUPKlFV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027 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Kbuild complains about ixp4xx_irq_setup not being __init itself in some configurations: WARNING: vmlinux.o(.text+0x85bae4): Section mismatch in reference from the function ixp4xx_irq_setup() to the function .init.text:set_handle_irq() The function ixp4xx_irq_setup() references the function __init set_handle_irq(). This is often because ixp4xx_irq_setup lacks a __init annotation or the annotation of set_handle_irq is wrong. I suspect it normally gets inlined, so we get no such warning, but clang makes this obvious when the function is left out of line. Signed-off-by: Arnd Bergmann --- drivers/irqchip/irq-ixp4xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-ixp4xx.c b/drivers/irqchip/irq-ixp4xx.c index d576809429ac..6751c35b7e1d 100644 --- a/drivers/irqchip/irq-ixp4xx.c +++ b/drivers/irqchip/irq-ixp4xx.c @@ -252,10 +252,10 @@ static const struct ixp4xx_irq_chunk ixp4xx_irq_chunks[] = { * @fwnode: Corresponding fwnode abstraction for this controller * @is_356: if this is an IXP43x, IXP45x or IXP46x SoC variant */ -static int ixp4xx_irq_setup(struct ixp4xx_irq *ixi, - void __iomem *irqbase, - struct fwnode_handle *fwnode, - bool is_356) +static int __init ixp4xx_irq_setup(struct ixp4xx_irq *ixi, + void __iomem *irqbase, + struct fwnode_handle *fwnode, + bool is_356) { int nr_irqs;