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: 138057 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp995272lji; Fri, 8 Jun 2018 08:14:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLs8KWOlTL67cpQU52RPSN87ZZDmya95jZgkVAbRfFTENXSGeaniIlP1HZ0ms2/D7q4lLMi X-Received: by 2002:a63:5f54:: with SMTP id t81-v6mr5673672pgb.108.1528470873881; Fri, 08 Jun 2018 08:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528470873; cv=none; d=google.com; s=arc-20160816; b=Fxvvik1Fr7MXHRgniZvs63jPHKupUJg9rTshnBYoNXbIqpMFoYnDc0xLGIIuBjCho4 k3rafJ+SpwVIKgMLhcT2m4+oxT+Vu4aYdGZBAcqLDpHw9Y4tbFdc96TXZomYRaIROa99 AtJ56ejb2v4GvfSAp9IpMqR15Zf7GS2pC/kh3x66wf/3OeoJFURo1M3vc//onzRyXivH 0DXtbnMbiAMqlUChq1tdNVqvL3QRFxlZpFE22hbC81EbQAHIXn9lfZryC6jXt6rBW0YU nGzfPilH4ddOckWaT77YySJ/o7hZnpazsububzMJv+0ZaYuvYiaVslbnmEUQwoRTwO1C emMw== 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=rry+yBfrDvCstL9tvn6EHoHdKvKrHhBNRfjMLHRM+ts=; b=SCHATLjes0HV/EuxGxzwYWI8FlCjR6vzEfXZrrowqn3FBMAd+xxqFBZCmJn9+TC1oW 25Urlqd7K+5cMiJMCVBrxwr9GvDW/BjOZCLhXtMONQ81XB3FAAvA13cPdFnIaOJ8mvwY DJlm4W8yaZIs/7l5uju0nPa6Q94UUfnNnr80ULfrKlG2grHfFnjpBRQc0EmkjLjcYF9K ZHB461Y3Cp6j9WCYASjC8MwEmICRpYlLSmVjINVuIZQZWCCQHBfVJMkpdaGTcnyRXeJA xWz+Imiet87FQ2Y/ZEkKtzNzYjzvQ85ESA5eUdi8otgWgfhy4LFe3r4a4bWZbECx76Z1 2qmw== 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 m189-v6si17296753pga.107.2018.06.08.08.14.33; Fri, 08 Jun 2018 08:14:33 -0700 (PDT) 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 S1751140AbeFHPOc (ORCPT + 10 others); 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 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(-) -- 2.9.0 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), {}