[PATCH 2/2] perf tools: Add NULL end elements to 'unit_to_pmu' map

From: Tony Jones
Date: Mon Apr 24 2017 - 00:27:12 EST


Add NULL end elements to 'unit_to_pmu' map to prevent compiler warning on
some toolchains.

Signed-off-by: Tony Jones <tonyj@xxxxxxx>
---
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