Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2396775ybi; Mon, 17 Jun 2019 04:12:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1ajgJKCjScFLUuvJ8WhKC+JNIrlwn0mqUod2EWM9NAywfrm8tGuAFhs7xjC6HSh6U5qh4 X-Received: by 2002:a17:902:25ab:: with SMTP id y40mr51482163pla.268.1560769976796; Mon, 17 Jun 2019 04:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560769976; cv=none; d=google.com; s=arc-20160816; b=ESD0JmQHTRIzplSvlJqcI6yueNa7mYg6ZmjzgH+xOk9d/Nhu3VJWshL3JlPKb3f0hc CWZhw5E5dSICQinyReNOvRxqdCOG+kPPZcO1ractWDfzCy8X2sPlgFuqmgxkhanjatrb xxfqSUYn+4AYjtaIRexscsHxOTGP5pUvoUDE0uhdpeEUibSbwas3Ih2MFSr4FLWV9ORO aj50E96o80j7DBcmb0IDKYuCHx77OjsQ+ZdE7Meg/b4Q3JzJZSpxDBTluYdiB7rKvq6O +ZckXzL6g3UAMvKdNuOik3PTMVyEI8N3NUGZ5cf+7X0yBZV+LqN0MKw08F1EE+jLUyCB 2EMQ== 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 :message-id:date:subject:cc:to:from; bh=ZHXLQhufJohUXBWTaxXeTvtXtBhmUVTuG4sovHNVobA=; b=vh25Kxz+jEObZZgG4FJ8xpbHXfxvEK/cQWv62qLQWziJbxOGPnSc0FIGoXHaNwAKNT MNBe5n0LR4U28qZ2XMwCO4l8m1/rtApxS26Ho8yWIAwD+jpVEXGgfpbP6gKZAnScH+5n MjzBpSQ+NADPh/26iPUUHCBWXC0JIwygG5FFEV/WN9ei0dehiOE4OyNrKA+0I2Z7l2ti YQ31xnBraDD3QZ1eYxMZTNJuBxBWNsK+h5W6A59Jlr7xJiptm4E8vLTgYki4Bp6G5bPk 7d4r9kqj2PfTCy8WvCxd/WOvUhhK4HWBcUlg71MgSkvsC4XNJpKSZfNg5de31BP3akLc 2uKg== 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 21si10400571pfa.144.2019.06.17.04.12.40; Mon, 17 Jun 2019 04:12:56 -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 S1727850AbfFQLML (ORCPT + 99 others); Mon, 17 Jun 2019 07:12:11 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:40901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfFQLML (ORCPT ); Mon, 17 Jun 2019 07:12:11 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1N32y5-1idHyv43rh-013RP4; Mon, 17 Jun 2019 13:12:01 +0200 From: Arnd Bergmann To: Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer Cc: Arnd Bergmann , Abel Vesa , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Dong Aisheng , Lucas Stach , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: imx6q: fix section mismatch warning Date: Mon, 17 Jun 2019 13:11:35 +0200 Message-Id: <20190617111159.2124152-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:luZvn4Kw4EBR3RZaXipNa456cw8n9WOMC2IEWpCkVsAMKIG9gyf Th7DcL93IXtSxW5GN6oGVvRO4qNociCYcoTyC6k9h91t+wCGdSDVEnnK99TtMYieeczzjce TtDhTLgMfYl53zOD+f9PVhF6IwrEPIgWIxTCcOP4Zf5dIvjTSMHxmkpBZda2gbOuYSf2paE RKvO5Om4GSzeijIMxk+HQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:M3B5Knar0Ik=:A+6jFaGJ6IonTlxDIyFvi7 gEa4cgrbowRmLVoa0iMQU1P1GYnSiU2VRShQMF1ULKS4MZtmzGY7IBMo1dJd9Y1M8qxsaYjrQ wVyx/F2362nHnaj3rKglLoq+Prt92d5dd/D4Nqur0Sz1+s/gVrRN8hz0jYOxGOKWhMkmC9jNv ZZ9lS7KTgc8/wdABoPeaTI+7eVeA2+VvqJJQsrTZOMm2cDhB7BgvwItmUsAAZy6jWI/XHFaZE VJ7FABvEEU9hwK9AKqUOGA0QpSjJ1WlF53J+7B3x1u2ZoNdsbwqouAAQJqljGIiuTIVlvBipk ZNir5dVDGvprYRQVzLlyinh78mFDamwd4fOnyKniEmhKAjfonrt/6RQFPXF6oaHOMsp0DMlv1 21z12ITap2G/izeQTekeLukhqf64x4w65h0jz8Ry3Cc0SceHMDOO9TYgtH39WqroVrY/3eo0p 3xHZ7CGdjNtqoPS0WK/ibk13QYv6iKX/cK7Hx/ywGB2OoUHDC9ivgXAxf8WI7dGwpEfhaccgO i91HiWGI9UQvTD5MFAt1nNt/VBSsgc1j0zW6E2wVRXup1iLl8hbUpzu+s4/+4I+e5GacGAOI7 R8W+FofVhOq/qOAuX1BfoSGgytorucDElYDjEZQOyQB2y832ZANXRJNiuIqCzktWVv8Udzk3v CkREuhO7uCqcdV8yXdfkI5yYj1iBg+qu4Dc1mGc6aW+vBD/eM/CEwATLznPECjp3Gy83CPe4p qQnrLatlgY5nAhzrlKagqWXzTjU/xlpv4pbriw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The imx6q_obtain_fixed_clk_hw lacks an __init marker, which leads to this otherwise harmless warning: WARNING: vmlinux.o(.text+0x495358): Section mismatch in reference from the function imx6q_obtain_fixed_clk_hw() to the function .init.text:imx_obtain_fixed_clock_hw() The function imx6q_obtain_fixed_clk_hw() references the function __init imx_obtain_fixed_clock_hw(). This is often because imx6q_obtain_fixed_clk_hw lacks a __init annotation or the annotation of imx_obtain_fixed_clock_hw is wrong. Fixes: 992b703b5b38 ("clk: imx6q: Switch to clk_hw based API") Signed-off-by: Arnd Bergmann --- drivers/clk/imx/clk-imx6q.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 2caa71e91119..a875d0bc12ee 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -418,8 +418,9 @@ static void disable_anatop_clocks(void __iomem *anatop_base) writel_relaxed(reg, anatop_base + CCM_ANALOG_PLL_VIDEO); } -static struct clk_hw *imx6q_obtain_fixed_clk_hw(struct device_node *np, - const char *name, unsigned long rate) +static struct clk_hw * __init imx6q_obtain_fixed_clk_hw(struct device_node *np, + const char *name, + unsigned long rate) { struct clk *clk = of_clk_get_by_name(np, name); struct clk_hw *hw; -- 2.20.0