From patchwork Fri Dec 16 09:06:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101412 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp142770obb; Fri, 16 Dec 2016 01:07:59 -0800 (PST) X-Received: by 10.84.215.142 with SMTP id l14mr4544913pli.99.1481879279892; Fri, 16 Dec 2016 01:07:59 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id 90si6878609pfk.12.2016.12.16.01.07.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 01:07:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHoTo-0004UT-KH; Fri, 16 Dec 2016 09:07:04 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHoTk-0004R5-AE for linux-arm-kernel@lists.infradead.org; Fri, 16 Dec 2016 09:07:01 +0000 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MF8Xf-1cNYq42XW7-00GGtq; Fri, 16 Dec 2016 10:06:31 +0100 From: Arnd Bergmann To: Viresh Kumar Subject: [PATCH] cpufreq: s3c64xx: remove incorrect __init annotation Date: Fri, 16 Dec 2016 10:06:15 +0100 Message-Id: <20161216090625.2235668-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:6odc2sLSjXIqi7XySohpfnLQUvtwBe3R76eNo2O1c26HoQ16zId HU8egmByWUGjtsgcpHZa1hifkShjZ+TX5QGV6NYvE0Z6Q7f72X6eDNjulpijz9cHiJMs/gu Cyfhe8GCrYRyKe0fVHumSaK8FVyd/SwD2b5Brgo2wfIDY3mPVimDTXa7q6r2AD4gtZgKSVw bNJYxkmUXKkc5yQVtlfqw== X-UI-Out-Filterresults: notjunk:1; V01:K0:kUc3RcXmz3A=:jBNHpw7lmHQo5xug4ggENo E3mrQcCxhs9bB1nr51g6WxQa/b36DZXHwFAa4EOo+GY85ZBzNxzGBxFkFS72mH9cffAZWJk1J lIEQJ+bfnJlaC1QGOTDQwuJvXVG6Bmoh9Q8TEa6F/zcep8hDztC5AHUj07CI7s5MJ0VulxMEQ JwrStRGVDG4Z+Dl3+9kr/D4dnxkoXQBRoYLHhH/FCL8jwoTi44Bv/Ned60x2k3GN8hKdeKuzE Ol8PE8STfMjSZRWza4bKlmnpEnHD2HcBbTrehObGQF9WsU3l6v/qsj3TuIr0b+YgtRDi+o9u/ u+b71zU8hpg6OLst2PDcsd7O3NTjyrRTaS7/xYpSdVm6TlNiglEgYW2PzgvVdkL7Xodvw5Yvw VszZdovt9YnKP6L9luu471f5MPr/wqPcDy8wn+Yvia0vyILaZAsO20mRki3oPl1X8G0DvbRT/ NJfVtGfNuuhTiFoKpWTfjIk0d3Xd8gsIgEWICMp/4zW26r+tWYntkbSJ/PP1wxb2TJjOAVFgr wuE1f2PDYM/h4QFpuSyufCfEmXoHMMzQ4JB2bnvORCfwB7Icy5u7XFjDxm/Jgz8kvyklYD4bs LrdFLUL8D42rf4AHToIx4z4IwSzBfTmbDIdtVu31h+Vs8YThvKWpmnohecgUx/6Gl7fHbNJ0F N1DO1Dw/5ZqHobQXCBtQNT7OhCzWZY6q7D4aKhg+3FuFE4HavSSNEk98GjWosnS5/ni4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161216_010700_722363_DBA84B2A X-CRM114-Status: GOOD ( 10.98 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.133 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.133 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Arnd Bergmann , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Javier Martinez Canillas , Kukjin Kim , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org s3c64xx_cpufreq_config_regulator is incorrectly annotated as __init, since the caller is also not init: WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator() With modern gcc versions, the function gets inline, so we don't see the warning, this only happens with gcc-4.6 and older. Signed-off-by: Arnd Bergmann --- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/cpufreq/s3c64xx-cpufreq.c b/drivers/cpufreq/s3c64xx-cpufreq.c index 176e84cc3991..0cb9040eca49 100644 --- a/drivers/cpufreq/s3c64xx-cpufreq.c +++ b/drivers/cpufreq/s3c64xx-cpufreq.c @@ -107,7 +107,7 @@ static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy, } #ifdef CONFIG_REGULATOR -static void __init s3c64xx_cpufreq_config_regulator(void) +static void s3c64xx_cpufreq_config_regulator(void) { int count, v, i, found; struct cpufreq_frequency_table *freq;