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: 9477589 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE5976047D for ; Fri, 16 Dec 2016 09:08:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA9552880D for ; Fri, 16 Dec 2016 09:08:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F5EE2883E; Fri, 16 Dec 2016 09:08:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D30E2880D for ; Fri, 16 Dec 2016 09:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759821AbcLPJII (ORCPT ); Fri, 16 Dec 2016 04:08:08 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:64591 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753951AbcLPJHj (ORCPT ); Fri, 16 Dec 2016 04:07:39 -0500 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 Cc: Arnd Bergmann , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , "Rafael J. Wysocki" , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org 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= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Krzysztof Kozlowski Acked-by: Viresh Kumar --- drivers/cpufreq/s3c64xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;