public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf tools: Fix a building error introduced by recent new patch
@ 2015-02-27 11:53 Yunlong Song
  2015-02-27 13:36 ` Arnaldo Carvalho de Melo
  2015-02-28  9:32 ` [tip:perf/core] perf data: Fix sentinel setting for data_cmds array tip-bot for Yunlong Song
  0 siblings, 2 replies; 4+ messages in thread
From: Yunlong Song @ 2015-02-27 11:53 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme; +Cc: linux-kernel, wangnan0, jolsa

The recent new patch "perf tools: Add new 'perf data' command" (commit
2245bf14 in acme's git repo perf/core) has caused a building error when
compiling the source code of perf:

 cc1: warnings being treated as errors
 builtin-data.c:89: error: missing initializer
 builtin-data.c:89: error: (near initialization for ‘data_cmds[1].summary’)
 make[2]: *** [builtin-data.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
   LD       bench/perf-in.o
   LD       tests/perf-in.o
 make[1]: *** [perf-in.o] Error 2
 make: *** [all] Error 2

This patch fixes the building error above.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
---
 tools/perf/builtin-data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/builtin-data.c b/tools/perf/builtin-data.c
index 9705ba7..0385063 100644
--- a/tools/perf/builtin-data.c
+++ b/tools/perf/builtin-data.c
@@ -86,7 +86,7 @@ static int cmd_data_convert(int argc, const char **argv,
 
 static struct data_cmd data_cmds[] = {
 	{ "convert", "converts data file between formats", cmd_data_convert },
-	{ NULL },
+	{ NULL, NULL, NULL },
 };
 
 int cmd_data(int argc, const char **argv, const char *prefix)
-- 
1.8.5.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-28  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 11:53 [PATCH] perf tools: Fix a building error introduced by recent new patch Yunlong Song
2015-02-27 13:36 ` Arnaldo Carvalho de Melo
2015-02-27 13:40   ` Arnaldo Carvalho de Melo
2015-02-28  9:32 ` [tip:perf/core] perf data: Fix sentinel setting for data_cmds array tip-bot for Yunlong Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox