Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164709AbdDXE1D (ORCPT ); Mon, 24 Apr 2017 00:27:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:45093 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1164695AbdDXE0t (ORCPT ); Mon, 24 Apr 2017 00:26:49 -0400 From: Tony Jones To: mingo@kernel.org Cc: Tony Jones , Andi Kleen , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] perf tools: Add NULL end elements to 'unit_to_pmu' map Date: Sun, 23 Apr 2017 21:26:33 -0700 Message-Id: <20170424042633.14423-2-tonyj@suse.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170424042633.14423-1-tonyj@suse.de> References: <20170424042633.14423-1-tonyj@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 23 Add NULL end elements to 'unit_to_pmu' map to prevent compiler warning on some toolchains. Signed-off-by: Tony Jones --- 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