[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1463471062-21752-1-git-send-email-lukasz.odzioba@intel.com>
Date: Tue, 17 May 2016 09:44:22 +0200
From: Lukasz Odzioba <lukasz.odzioba@...el.com>
To: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
peterz@...radead.org, ak@...ux.intel.com, kan.liang@...el.com,
akpm@...ux-foundation.org, eranian@...gle.com
Cc: lukasz.anaczkowski@...el.com, lukasz.odzioba@...el.com,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] arch/x86/perf/intel: Add static keyword to some arrays
Add static keyword to intel_bdw_event_constraints, snb_events_attrs,
nhm_events_attrs, intel_skl_event_constraints arrays.
Signed-off-by: Lukasz Odzioba <lukasz.odzioba@...el.com>
---
arch/x86/events/intel/core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
index a6fd4db..79aaf8c 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -177,7 +177,7 @@ static struct event_constraint intel_slm_event_constraints[] __read_mostly =
EVENT_CONSTRAINT_END
};
-struct event_constraint intel_skl_event_constraints[] = {
+static struct event_constraint intel_skl_event_constraints[] = {
FIXED_EVENT_CONSTRAINT(0x00c0, 0), /* INST_RETIRED.ANY */
FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */
FIXED_EVENT_CONSTRAINT(0x0300, 2), /* CPU_CLK_UNHALTED.REF */
@@ -225,12 +225,12 @@ EVENT_ATTR_STR(mem-loads, mem_ld_nhm, "event=0x0b,umask=0x10,ldlat=3");
EVENT_ATTR_STR(mem-loads, mem_ld_snb, "event=0xcd,umask=0x1,ldlat=3");
EVENT_ATTR_STR(mem-stores, mem_st_snb, "event=0xcd,umask=0x2");
-struct attribute *nhm_events_attrs[] = {
+static struct attribute *nhm_events_attrs[] = {
EVENT_PTR(mem_ld_nhm),
NULL,
};
-struct attribute *snb_events_attrs[] = {
+static struct attribute *snb_events_attrs[] = {
EVENT_PTR(mem_ld_snb),
EVENT_PTR(mem_st_snb),
NULL,
@@ -258,7 +258,7 @@ static struct event_constraint intel_hsw_event_constraints[] = {
EVENT_CONSTRAINT_END
};
-struct event_constraint intel_bdw_event_constraints[] = {
+static struct event_constraint intel_bdw_event_constraints[] = {
FIXED_EVENT_CONSTRAINT(0x00c0, 0), /* INST_RETIRED.ANY */
FIXED_EVENT_CONSTRAINT(0x003c, 1), /* CPU_CLK_UNHALTED.CORE */
FIXED_EVENT_CONSTRAINT(0x0300, 2), /* CPU_CLK_UNHALTED.REF */
--
1.8.3.1
Powered by blists - more mailing lists