From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916AbbLFNSx (ORCPT ); Sun, 6 Dec 2015 08:18:53 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57655 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898AbbLFNSv (ORCPT ); Sun, 6 Dec 2015 08:18:51 -0500 Date: Sun, 6 Dec 2015 05:18:03 -0800 From: tip-bot for Andi Kleen Message-ID: Cc: linux-kernel@vger.kernel.org, acme@redhat.com, mingo@kernel.org, jolsa@redhat.com, hpa@zytor.com, peterz@infradead.org, eranian@google.com, ak@linux.intel.com, efault@gmx.de, tglx@linutronix.de, vincent.weaver@maine.edu, torvalds@linux-foundation.org Reply-To: jolsa@redhat.com, hpa@zytor.com, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, tglx@linutronix.de, efault@gmx.de, vincent.weaver@maine.edu, torvalds@linux-foundation.org, eranian@google.com, peterz@infradead.org In-Reply-To: <1448905722-2767-1-git-send-email-andi@firstfloor.org> References: <1448905722-2767-1-git-send-email-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/x86/intel: Fix __initconst declaration in the RAPL perf driver Git-Commit-ID: da008ee72cabdee0ee98d3a3580ca5cfb8d2d1f1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: da008ee72cabdee0ee98d3a3580ca5cfb8d2d1f1 Gitweb: http://git.kernel.org/tip/da008ee72cabdee0ee98d3a3580ca5cfb8d2d1f1 Author: Andi Kleen AuthorDate: Mon, 30 Nov 2015 09:48:42 -0800 Committer: Ingo Molnar CommitDate: Sun, 6 Dec 2015 12:55:53 +0100 perf/x86/intel: Fix __initconst declaration in the RAPL perf driver Fix a definition in the perf rapl driver. __initconst must be applied to a const object, but to declare a const pointer you need to use * const ..., not const ... * This fixes a section attribute conflict with LTO builds. Signed-off-by: Andi Kleen Signed-off-by: Peter Zijlstra (Intel) Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Link: http://lkml.kernel.org/r/1448905722-2767-1-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar --- arch/x86/kernel/cpu/perf_event_intel_rapl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c b/arch/x86/kernel/cpu/perf_event_intel_rapl.c index ed446bd..fb5843d 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_rapl.c +++ b/arch/x86/kernel/cpu/perf_event_intel_rapl.c @@ -63,7 +63,7 @@ #define INTEL_RAPL_PP1 0x4 /* pseudo-encoding */ #define NR_RAPL_DOMAINS 0x4 -static const char *rapl_domain_names[NR_RAPL_DOMAINS] __initconst = { +static const char *const rapl_domain_names[NR_RAPL_DOMAINS] __initconst = { "pp0-core", "package", "dram",