Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2466829ybi; Mon, 17 Jun 2019 05:26:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUcSHoQJKLVQ1TE1nAhPpqOSL2pAdZGXJEJdhv0l4KJX1xNX73TwsLDTYV4pVknSCP2aQf X-Received: by 2002:a17:902:22e:: with SMTP id 43mr103396444plc.272.1560774378044; Mon, 17 Jun 2019 05:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560774378; cv=none; d=google.com; s=arc-20160816; b=ZpM3YPFi1zpih9RfOcVoV/mAUhJJQXZZIBmV7JEFv0HR++FBuPyBB4jMr8lr8qaxCL NjZDsHd9o6e8D/KwO7SHHLs8GftWGlYp274pRKtNM63Uo9DHBeq7FyMR05xT7+TYiNcX qaKcrbJ22J/az1xJWBAFsqCBZbzkfmbTrO9uLYxyiM6P1RR47Ubyfjn3vHVJU0pskUw/ HRGW7uLUM4gg6Ujj2cY95oO8+/97rnhVPMYFfwA6HYSp0bSxPqvl8OPbrJGRPhwSgAd8 hrFeT8KnDF5pfDgYLNFPes3Xd7iL2Tf/zogiqBhUlD6wYKZ5U0PkNK4+6jGc8X56xsdH q/6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Bq3AyNxt2lsBH9wvrOhBVUi9cwfufd4D6ZSu4lL7xug=; b=hyU2jJnhvNVZ3U5/3zLus+Mh9ud3vcWhbUw/4xb/LnH0NqwAGGEYZpcY6cjG43Pifz jUqBQ8AvwmEYz5NVE/KcCMbTxeAouMJe899tRaA3MgRn3wO1xyEjOP2rFtBv3RCJo4mx v4XT23wqOum85Z7/l5JSxLcpmJqKayUFZTQm1ezBdQDqwvl2L8RJuUFsshZtrvhIVo3Q hb2iKHU8DXy49zNMLLQ2+a155Nm0Um6QK0PTnC3xZXZ0aaQY49ixXRQrjq5UQ54rgH2q atbWtc/M1InOezVaJm81S4+Ef37cFdDPP3ncfBlnOHCHaPwbMQ1mpi3UIAjoqnVq6LyI mIZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si6757414pgm.434.2019.06.17.05.26.01; Mon, 17 Jun 2019 05:26:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727376AbfFQMZg (ORCPT + 99 others); Mon, 17 Jun 2019 08:25:36 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:55181 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfFQMZg (ORCPT ); Mon, 17 Jun 2019 08:25:36 -0400 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 Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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>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yScwpn3eUKsd8zliHJg4lj0PXAXP+saVNdbLqGEuqbve0KjEhTw7 Aws9R1XLVqu9ZKJGGlYvNu6Dipb7fblBP0UjnoaFctbwXufiHDR6etFPE44= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.20.0