[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170424042633.14423-2-tonyj@suse.de>
Date: Sun, 23 Apr 2017 21:26:33 -0700
From: Tony Jones <tonyj@...e.de>
To: mingo@...nel.org
Cc: Tony Jones <tonyj@...e.de>, Andi Kleen <ak@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] perf tools: Add NULL end elements to 'unit_to_pmu' map
Add NULL end elements to 'unit_to_pmu' map to prevent compiler warning on
some toolchains.
Signed-off-by: Tony Jones <tonyj@...e.de>
---
tools/perf/pmu-events/jevents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
index b6300e875b87..ecabdbb92944 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -198,7 +198,7 @@ static struct map {
{ "QPI LL", "uncore_qpi" },
{ "SBO", "uncore_sbox" },
{ "iMPH-U", "uncore_arb" },
- {}
+ { NULL, NULL}
};
static const char *field_to_perf(struct map *table, char *map, jsmntok_t *val)
--
2.11.0
Powered by blists - more mailing lists