From patchwork Thu Mar 7 10:22:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159831 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7259656jad; Thu, 7 Mar 2019 02:22:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxL1ZHzRCsVMYlqcfFghYBVI6UorKbBfgbuAabROu3H6WTNWdt/p+xSs/S+1Llo7UAUdTh7 X-Received: by 2002:a17:902:ab8f:: with SMTP id f15mr12096930plr.218.1551954179544; Thu, 07 Mar 2019 02:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551954179; cv=none; d=google.com; s=arc-20160816; b=VmoF/hTUwVtu3Jq8e0OOoc5FEMhXnQgs39Exm1VYVl8+iBCcgrPpk0GIrdK2967B5E asmC7pHkSCbduEPj5j7DUCQ+2gHiUgxvOcmRZ57MI5R3rG6CNuoZmuBr7op+SHge3nS6 F7kF0DIn71VHfGVsL9eH9VHeZn5GN5lX7DTum7n1W4izdUwrZVgohDwB7tbEInx5NIDK 18iBZFZhV8aRLJ+H0K/+2//G8cCgT3dlhDpoxV1E1976kYJqBYSQ19Dew/flVW4epYh7 +BMlHAfR+Eo/SKEYj2Dv25+VzBzSMwEWDvt7kLIbzXhPauOY37sMTVE501ibnCVt5Cvw QzIg== 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=/K3ta3a/QiPY/HAqafb6Uqx0hVwPwnOuXGuszoOIT7M=; b=bIcGYdW0aU66oFjOnywHL05gKsvZd4F7v9Ss8KCeqo3uxqFt4dnjO2H55mOKFvnG0S BCZBnsCi8dCdHg7L5m+696rNzVyFnpSjmK6mid6SMUmxH3qfdx2f96W7oBt0FV9CfPRs Jac9wMGYyLE6cHu3FoibvTzIzifRsMhTzb7bc/zbgbe+34ZfiFyJD4ILxXURY/WQGAB/ T9/AvHAZxR9dmV8se9NSum4JN0cDfiLPBI4sDUgkm3w4/aT0gN7MRO7LtwqzRkHYzBW4 HU/Xks32c3E8Lgg83/HuSXRG+v/0xBjV8Ai2rISQ0LrvtAGwqbjgqWECXMyjG7p+klKx FONw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 u9si3578296pgp.269.2019.03.07.02.22.59; Thu, 07 Mar 2019 02:22:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726387AbfCGKW6 (ORCPT + 11 others); Thu, 7 Mar 2019 05:22:58 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:36543 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfCGKW6 (ORCPT ); Thu, 7 Mar 2019 05:22:58 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1Msqty-1gmF880kfY-00t8aF; Thu, 07 Mar 2019 11:22:52 +0100 From: Arnd Bergmann To: "Rafael J. Wysocki" , Viresh Kumar Cc: Nick Desaulniers , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Arnd Bergmann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: pxa2xx: remove incorrect __init annotation Date: Thu, 7 Mar 2019 11:22:41 +0100 Message-Id: <20190307102250.1140038-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:GFp2DqL8FXuUvcKe0yWcXG5+XsoseIiCwvXuV3Mvf2ukE5U/jNW lI1KOI9xB2VRUk6FBsIBLdyAXbhZuOzJc2nhBUCRddoevt/OHN7W3JZssQrNxF1nUCws248 ry9jAd8DiWoM10ahPdjbRIHxv6GOrA2f0Kl0fbn+eqyeU5dlmJhdyIpqD4fK9p00+8f58rS n42O1rjlfb5LEK6e0QmBg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:zeNpyMM1Anw=:CwbjhtkXlDj0GVda/2JC0n lOLXz7UXSnjreXyIYYlfAbBvBChGV6nggcSXvodyol++u7rNKfG+iduBH+vYWgUiysabqSWy2 2j0L9u1O2t14Mpl3Pbf3AQCzLuPSUCTPyIhfMWpiAShM1TDT0Bt52MJuiVlTrRJYBziNH9aIA mjDOOpQ039WxaDZF8PJpfn+WJwhSWYEtbM4jopy7f+OtFTIfi2RJCfjKbkTJUZcKIZJ7BtFBC /RSGptIwW7HM4tVqobfxqADGVIQjiyFBRGwBhqyVYzgmAlBtV3PFO3LhJ8FvxRANBm9+qMOR8 G2ZxIPtjhaux03P4wrBG8d8ZUybTjOvgZQmZgiXCetcUl+jg3CU2HMjS6Cwc3RXMg/6F0HHVJ tTktqB2xYG6yQEAWRrxYx2zccXGU8DVaWzb1E67yxJrbzxbklv8o0HEVuWEhqPDLfcLXRV4KE nSEtLf6WiIr1eQ51Fy1GnvHKysatfaw1mSo+MQuG3rGvBwmlbQ9egsJaEKqOhGsU36xH4lMbJ Dms8Iw6h+LiO74BRibeprU6ut3F3IvWVudpQzPP9qUxL+ox+sX5mJjAax9DmlEELK5my8C9b6 I0myY1MavMWCccxa7Of6Iu1knxcjWnlVdnMzXLBPcn4d//NVltPfxmAsZwHhdF2liT1+2EhRP Axw8uQP2+mXrOpAE6T8phYE5ZJ8RczbjqpttABO8j6oFpGtwiN9sMoGBruWTCKxH76VSiYE3i /ATy9yKTH7SmzIHtIs0iPlErlV2M2Bs368sIgg== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org pxa_cpufreq_init_voltages() is marked __init but usually inlined into the non-__init pxa_cpufreq_init() function. When building with clang, it can stay as a standalone function in a discarded section, and produce this warning: WARNING: vmlinux.o(.text+0x616a00): Section mismatch in reference from the function pxa_cpufreq_init() to the function .init.text:pxa_cpufreq_init_voltages() The function pxa_cpufreq_init() references the function __init pxa_cpufreq_init_voltages(). This is often because pxa_cpufreq_init lacks a __init annotation or the annotation of pxa_cpufreq_init_voltages is wrong. Fixes: 50e77fcd790e ("ARM: pxa: remove __init from cpufreq_driver->init()") Signed-off-by: Arnd Bergmann --- drivers/cpufreq/pxa2xx-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 Acked-by: Viresh Kumar Reviewed-by: Nathan Chancellor Acked-by: Robert Jarzmik diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c b/drivers/cpufreq/pxa2xx-cpufreq.c index 46254e583982..74e0e0c20c46 100644 --- a/drivers/cpufreq/pxa2xx-cpufreq.c +++ b/drivers/cpufreq/pxa2xx-cpufreq.c @@ -143,7 +143,7 @@ static int pxa_cpufreq_change_voltage(const struct pxa_freqs *pxa_freq) return ret; } -static void __init pxa_cpufreq_init_voltages(void) +static void pxa_cpufreq_init_voltages(void) { vcc_core = regulator_get(NULL, "vcc_core"); if (IS_ERR(vcc_core)) { @@ -159,7 +159,7 @@ static int pxa_cpufreq_change_voltage(const struct pxa_freqs *pxa_freq) return 0; } -static void __init pxa_cpufreq_init_voltages(void) { } +static void pxa_cpufreq_init_voltages(void) { } #endif static void find_freq_tables(struct cpufreq_frequency_table **freq_table,