From patchwork Mon Jun 17 11:11:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 166989 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2719485ilk; Mon, 17 Jun 2019 04:12:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwF25nmUAe49qfultaYw7MoezIez27fEaoMj+dvakQRpd44aINB0WpKmdS5ByX+sinfqczu X-Received: by 2002:a65:620d:: with SMTP id d13mr49545417pgv.109.1560769933733; Mon, 17 Jun 2019 04:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560769933; cv=none; d=google.com; s=arc-20160816; b=MhsqDmDGQ15CZ0wQlUBsBpfOMdLi87IcCxlm4+mxo7zj7NSTSNqGXPORBCiUpiDyq7 ISBi0B/Ab8w1IvsvJuTNxD06CrflIjteUST1gLVPCgUcpFlWqEvP1+uHA7QC0qFNtEdZ CLbwAJ8r9azExFQVvuPi2I35YYHEv+36JYsuwCgCVDqNBZdtgTDrhB5Nzp7nMSVl/zmK 7H/zaCeuBDw3BPU/ux5mw/+QvPA6+7HJGiUCGdR9Qww31klPmYtjuyajarLEPs1DExyg IgyXfwZoM9rwxXv0IJi7J5rid5jbF7zXQ0komLFUg63plZMcqJagZRI2gNKqWOUp1F0y lISQ== 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 l11si10017541pgp.438.2019.06.17.04.12.13; Mon, 17 Jun 2019 04:12:13 -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 S1727898AbfFQLMM (ORCPT + 26 others); Mon, 17 Jun 2019 07:12:12 -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 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(-) -- 2.20.0 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;