From patchwork Fri Sep 15 19:45:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 112751 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp990275qgf; Fri, 15 Sep 2017 12:45:40 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7mi1BRax5XlimyKGFRQvQPWG2i3pMP08BGf9+VEqs0OEuXeTHM87gtEUa1s9gICWN6GR+H X-Received: by 10.99.126.84 with SMTP id o20mr25223802pgn.201.1505504740748; Fri, 15 Sep 2017 12:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505504740; cv=none; d=google.com; s=arc-20160816; b=oYbmJyUbvW0iZWkUu1ewxZ+QRRU12Qguv/lH49GiR6QBKfAA56owG73memlrJynmPN T/HgYsLlzIiUHhu9/w1ywh1v3Q34MZ45VR4HDMy0axvlhlOqZL7PQAxx/JQq4ikqXyn7 Qbob597SjB/iL7KG6J9uj+9t3/YoRijCgj40lVZFz3kB6s76jUfoxZRy/HXwWA4tzzMd 0PbgPVGiUUDJDWSuy0HSfig0OcMmaaRjIwyEB5qqrtZyraFftMezKE6JP9VYqOVFmVJe man/IpRNm2P2JDdhf4oSoORTdsVw3zTB/sfqrmAf3KjDuy+Z5HmJj2mqcPuLLOIzy6po Ztig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=I86wi25u3ldXkUVBtkyyIkPnmApW07Eg5k2eRWuVnYc=; b=o0MLSat8kLkAS1K/LOgWkg/lqbpkPKHHOcGwQupAFZFliz1GGd+sUk3tds8wzJsLwH MH39rCpxqo6yPN25yn6mLeTwN2EBbc00aMQ/XWKgQrBX9OpAzjRiXfmoWWWnw2SSBhFu HLkpjRn6yjnuaetrKFh/FzKdcTx2pvZrtM0Juk81QcFQc6l4ARF2ZDTvIAuCtINWr7Tb HPkdTyKvukzf+i7DN9VJ17y4EuMF0aAK6dh+UTRPkWV597qczCnfkjlhwmnGlwaSsxk3 I+m9mB0+Hf7sT9Q8CD8S1UhiCd9MA+d2czgMkT58rQYuI6suuF1ejgM5mItIZWLIJ26G XVEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 q77si1036818pgq.526.2017.09.15.12.45.40; Fri, 15 Sep 2017 12:45:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbdIOTpj (ORCPT + 3 others); Fri, 15 Sep 2017 15:45:39 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:55325 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676AbdIOTpi (ORCPT ); Fri, 15 Sep 2017 15:45:38 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Mf1KL-1e4IGQ2Qzx-00Oayb; Fri, 15 Sep 2017 21:45:31 +0200 From: Arnd Bergmann To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Paul Walmsley , Tony Lindgren Cc: Arnd Bergmann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] omap: hwmod: fix section mismatch warnings Date: Fri, 15 Sep 2017 21:45:12 +0200 Message-Id: <20170915194527.1171677-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:WXykCGv536j0SFWw+ax532Tz9aB2HuBhysppV4Qo0HM8Ln/f8bz jPCNke9JOLDPXug59A3PPbUGnHHZPn7E01SEZu9XIP1G/VKK2vWwaSLZSbr1GLjzAjmyzET XZ9P3/4SfVUs7ewRtkH/AdKMT3Olm+kxi7qLOSMRCS0EBQdxsiSCMiZfNdcqZSTwYhLz+Sf 1wnS+v5loV4NxSre2puEg== X-UI-Out-Filterresults: notjunk:1; V01:K0:HjESJPEZEhM=:98Ih9qJCVDPVOQngysjl4p KTw7uYjEao2F4hxfLMsgw41BfyattboLgSUaK3d1Gz7I39Bru8qDDSJU9ZgQJ6pE+Pz0QNjk5 Qp8WWqzG5W6OEeWx6oraTp7HA1mCIdBvzMSexl0H37vnCaA/RUyhWi+/FbHzwcJEu1BF8i8kk zRbv82/dYf2HZtNPUYaFmmPjMjEsV1kc37dNwNVb/VrdqLZ4V1Ha89mxoBTufc/axbnG7/5U+ iwI1Ig3SiSGJT6yWa1fE+zw2ek9G2fYk+GyXXkxeRbIYasLWt8iQyboqr6CHmZhOVDkOKcNLb txp/gsdL88OVS3CLZXvJZSAu8jrImLmjbfNxYm2rzYUWJLl3yRTWBSJ1Fb3LBsdvYkV75BjLz guw+HjVcVL5vVqze206AWxp0gF17CzMErMiaHO050LSCESB1n0cOwXh3V4Jhzela0PxoptMCL E9ewQ/SOWbRRovRM266K2SS+N/NCezpP/Z+6T3YJ4JsQT/vMCX/bie+3JhyaROxY9MvY6N5Dc b3/RAUud+Uf0J+e4D/XHq0lqZOrZ2sbrcM9K+0Pbb/FKs3wm2pYTbpdCuk3cKqV6NvO62E4Be hk9RgoOZJ4YwMaTHFbt2zBpe500wsTLGEpKOdGeZcFW37gTd5X6KFNe/7BAxfYXZR5q0xNVub BlarryGykFZTRC4B25UnEEEcoFzftFNVhPcwH1Kn8F++ZHBTXdobNe6KvFujJ3+TzXL/6vZW9 Co34q4xiij6u43pSQ3l7wz/+sduuxp0smD2eCg== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Older compilers choose not to inline _setup_clkctrl_provider(), leading to a harmless warning: WARNING: vmlinux.o(.text+0x27b34): Section mismatch in reference from the function _setup_clkctrl_provider() to the function .init.text:memblock_virt_alloc_try_nid() The function _setup_clkctrl_provider() references the function __init memblock_virt_alloc_try_nid(). This is often because _setup_clkctrl_provider lacks a __init annotation or the annotation of memblock_virt_alloc_try_nid is wrong. This annotates it as __init as well, which lets the linker see that it is actually correct. Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap2/omap_hwmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Tony Lindgren diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 2dbd63239c54..91ec0ca4822b 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -732,7 +732,7 @@ static int _match_clkdm(struct clockdomain *clkdm, void *user) return 0; } -static int _setup_clkctrl_provider(struct device_node *np) +static int __init _setup_clkctrl_provider(struct device_node *np) { const __be32 *addrp; struct clkctrl_provider *provider; @@ -761,7 +761,7 @@ static int _setup_clkctrl_provider(struct device_node *np) return 0; } -static int _init_clkctrl_providers(void) +static int __init _init_clkctrl_providers(void) { struct device_node *np; int ret = 0;