Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbdIOT3g (ORCPT ); Fri, 15 Sep 2017 15:29:36 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:65337 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbdIOT3f (ORCPT ); Fri, 15 Sep 2017 15:29:35 -0400 From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Matthias Brugger Cc: Arnd Bergmann , Shunli Wang , James Liao , Erin Lo , Philipp Zabel , Sean Wang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] clk: mediatek: mark mtk_infrasys_init_early __init Date: Fri, 15 Sep 2017 21:28:30 +0200 Message-Id: <20170915192848.649455-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Il6PiwnyAoVuCfcE8amd11AXOIbs1QlyLMcDbeOvAkQbFqSw+Kn Fx5+AKRuHhEL1Srtiy+ahvz1kq2Bpj0IJt9uN5RO6CR90GLmfusi7EkgJIobfC/t/oozxyE vrXKXT7bBmQ0kX3AyThojHNVKZ2WLT+uWL1KtA4Gnwtzsg/c5nPA2g007SnBOTzn7ABzGWz fuCA045cy86XqlW1lLpxA== X-UI-Out-Filterresults: notjunk:1;V01:K0:sHmsy7JLD3E=:L2s3kvsi7kmZ81ForQ6ZZV fpIuVFAuKRJ8BGMxElIM5/AR2FEIqYlkIj6TPb0+S1jsxyfw37KXuYoU6cTpL777MFnSLCTsD OhwvFRnTFtWiw8r+WfdIT6U4g8Dhmx+c4s23pRAQ0krT08x7ePqcly888pQj+MZ4DEGgl+T6U KR+uDOhC6UBipwQVVYBiRHhWCvJp3YbWiTnPR9lG9udA/QuxZ74+T4X+aIyWfdjmZ7H0KdOrd oDro9P00hsVjI3OW+NOA8CGRx9M4WR7APPHOWEg9cniojpg2NG9XIERN8imLr4itRipCXYbjV RSTWnZH2nxFONo4MXDrUHFkO0F9FsLLg8d247Y+u7ThhG6Brp9BGQLreq0MNvDhJoC7Iv6MgA FGQ7Q7A/kawKgAxIOiD1+ZgQy5oc7jWkugFdIbQdC65mBiEpqeYhLNeWmWniYVwX1pXSInX+v EJZVYet2geDq9CYwp5KsT0PwuqWYJaynUc5lEnIQqu783g/O1lSpI8rk+wvNOvHLcDy8RBkfx Rz7FwkYsRIwb7K8MB3dUt5hP/fCeN8MC//2EqgI36/H1zx0Uxj3Eg5B+oIhtHQp8VqwZc+Y8Y GhBt7ipCvrdNpLNNw9r4R0RvmrrA5yP1WnmANgyhG7rLnQCN9f/2pIGUQSmiIIo8MAJyCQ6OT CT/I51xcVZt6uxhP+/byp/ltl12vTojVz8J9o1CyG1HFqA7OZ5+e3Msy7wPetropyvudDdi+m uYWC2cOPmFzwdunxTRqC43DPJhtgGOQOyF1tjg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1271 Lines: 32 On gcc-4.6, we get a harmless link-time warning: WARNING: vmlinux.o(.text.unlikely+0x196a0): Section mismatch in reference from the function mtk_infrasys_init_early() to the function .init.text:mtk_clk_register_cpumuxes() The function mtk_infrasys_init_early() references the function __init mtk_clk_register_cpumuxes(). This is often because mtk_infrasys_init_early lacks a __init annotation or the annotation of mtk_clk_register_cpumuxes is wrong. Newer compilers inline this function so they don't warn, but marking it __init is the right solution for all versions. Fixes: e9862118272a ("clk: mediatek: Add MT2701 clock support") Signed-off-by: Arnd Bergmann --- drivers/clk/mediatek/clk-mt2701.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c index 9598889f972b..8e7f16fd87c9 100644 --- a/drivers/clk/mediatek/clk-mt2701.c +++ b/drivers/clk/mediatek/clk-mt2701.c @@ -750,7 +750,7 @@ static const struct mtk_fixed_factor infra_fixed_divs[] = { static struct clk_onecell_data *infra_clk_data; -static void mtk_infrasys_init_early(struct device_node *node) +static void __init mtk_infrasys_init_early(struct device_node *node) { int r, i; -- 2.9.0