From patchwork Fri Jun 8 15:14:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10454651 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 C44A860318 for ; Fri, 8 Jun 2018 15:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C69BA2855A for ; Fri, 8 Jun 2018 15:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB3DB294B2; Fri, 8 Jun 2018 15:14:37 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 90011296CC for ; Fri, 8 Jun 2018 15:14:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751140AbeFHPOc (ORCPT ); Fri, 8 Jun 2018 11:14:32 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:38907 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbeFHPOb (ORCPT ); Fri, 8 Jun 2018 11:14:31 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MTsu0-1froAk0v20-00QRSM; Fri, 08 Jun 2018 17:14:18 +0200 From: Arnd Bergmann To: Srinivas Pandruvada , Len Brown , "Rafael J. Wysocki" , Viresh Kumar Cc: Arnd Bergmann , Doug Smythies , Toshi Kani , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: intel_pstate: remove incorrect __initconst annotation Date: Fri, 8 Jun 2018 17:14:02 +0200 Message-Id: <20180608151411.3892739-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:+MCNdx+hUjHWWKQBdkzjp68NeYpxiUj0FpwPhKvnPkYeKQnMjz5 NyWjne+lLVFsQiUrQlqZGVwPUt9GIVc0luAp/x0QtT9ZM36E2HGAXyg6JGqhQ9t12OTynAi oKfphJ35l7YgvUp6SeP50jT5fUvgduw8YEhY9oC+as+0z0INAtDtkMFA8CT89lYFisSj0Fr RlJP/rE2PRG/b0peq5N7A== X-UI-Out-Filterresults: notjunk:1; V01:K0:cVQt4ZAPb24=:I11i/veqz2Lgujd7gXtF52 ACZxHLBbJZf5zz4ZxC6syzkSFjFi+wW7txXi0rZwj/cW99MtXcnz2iOY4Q+jqY0y3pM+G4De5 MgA25UzkFFXVRlcYjK9Fpru+WO/0dseoJn+jhND1hcjd1bAMd72+YvsK/ryrhQOCtLW9ASrVl sJILVMNBgzO4mISdzzVFabl4Xrfh74sP3a2X9KOPbhPaP+WwH6js6ZZzPBG8zyM/OvGR0+h1b FOcSWj27CAWj7TQ2i4iNL0y4wMPBFzbmwGo4ancda4ZsP88wxiFy7GhakQ1IxkzQSSGfytjVr cMr+/OBZbLtfqcWtb1WKRtEA/m8G9iLF5jLa7CCToLk+WnWcDkWP+rdsTMkbfPJl3GoYA6YD5 ovWNGgZRADNtMa4izpZt6FscLzX+dT+2zW7TK2D+o8X7dG+6giIXbNObmp7KX++kIui/rFMag oQIS+BS8EddDn1lrcwzwRo0Zh3CLElOvahp49XS767tLd4ohtW7AeiLqF4+7uIWdMS3TVha+m ScX0TUaat96V2xd09x1mi+1y6BnrFshDOAQQQUhyLmNYSqtLP2ACxH/ez6jsqfAOTZydUmAlm UrgERIhxPCyTfcoLc5IPEh32AC4yJIP0Uuk57duj+pzkcJzwCO2WCSGJq6XlNdbfduyrxlVmh g/K/i1Q7Mby5L4YOZ8g/eKm8L5IihvCfjd+dR6mRp7eou1vnhaDc/zt/TeYH8iU15Du0= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We get a build warning about the newly introduced code in intel_pstate_init_cpu() that references an __initconst variable after it has been freed: WARNING: vmlinux.o(.text+0xf9eca2): Section mismatch in reference from the function intel_pstate_init_cpu() to the variable .init.rodata:intel_pstate_hwp_boost_ids The function intel_pstate_init_cpu() references the variable __initconst intel_pstate_hwp_boost_ids. This is often because intel_pstate_init_cpu lacks a __initconst annotation or the annotation of intel_pstate_hwp_boost_ids is wrong. This removes the annotation to keep the variable around at runtime. Fixes: f50f70793d78 ("cpufreq: intel_pstate: enable boost for Skylake Xeon") Signed-off-by: Arnd Bergmann --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 2065724dbffc..380936700165 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1794,7 +1794,7 @@ static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = { {} }; -static const struct x86_cpu_id intel_pstate_hwp_boost_ids[] __initconst = { +static const struct x86_cpu_id intel_pstate_hwp_boost_ids[] = { ICPU(INTEL_FAM6_SKYLAKE_X, core_funcs), ICPU(INTEL_FAM6_SKYLAKE_DESKTOP, core_funcs), {}