From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753626AbbJTHu6 (ORCPT ); Tue, 20 Oct 2015 03:50:58 -0400 Received: from terminus.zytor.com ([198.137.202.10]:48417 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbbJTHu4 (ORCPT ); Tue, 20 Oct 2015 03:50:56 -0400 Date: Tue, 20 Oct 2015 00:50:18 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: namhyung@kernel.org, acme@redhat.com, mitake@dcl.info.waseda.ac.jp, tglx@linutronix.de, mingo@kernel.org, jolsa@redhat.com, dsahern@gmail.com, linux-kernel@vger.kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, hpa@zytor.com Reply-To: dsahern@gmail.com, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, namhyung@kernel.org, acme@redhat.com, mitake@dcl.info.waseda.ac.jp, tglx@linutronix.de, mingo@kernel.org, jolsa@redhat.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf bench: Use named initializers in the trailer too Git-Commit-ID: a4c6a3e8bbb675a601f529881c51ff226f83c3f1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a4c6a3e8bbb675a601f529881c51ff226f83c3f1 Gitweb: http://git.kernel.org/tip/a4c6a3e8bbb675a601f529881c51ff226f83c3f1 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 19 Oct 2015 18:17:25 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 19 Oct 2015 18:17:25 -0300 perf bench: Use named initializers in the trailer too To avoid this splat with gcc 4.4.7: cc1: warnings being treated as errors bench/mem-functions.c:273: error: missing initializer bench/mem-functions.c:273: error: (near initialization for ‘memcpy_functions[4].desc’) bench/mem-functions.c:366: error: missing initializer bench/mem-functions.c:366: error: (near initialization for ‘memset_functions[4].desc’) Cc: David Ahern Cc: Hitoshi Mitake Cc: Jiri Olsa Cc: Linus Torvalds Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/n/tip-0s8o6tgw1pdwvdv02llb9tkd@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/bench/mem-functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/bench/mem-functions.c b/tools/perf/bench/mem-functions.c index d1de9c4..9419b94 100644 --- a/tools/perf/bench/mem-functions.c +++ b/tools/perf/bench/mem-functions.c @@ -270,7 +270,7 @@ struct function memcpy_functions[] = { # undef MEMCPY_FN #endif - { NULL, } + { .name = NULL, } }; static const char * const bench_mem_memcpy_usage[] = { @@ -363,7 +363,7 @@ static const struct function memset_functions[] = { # undef MEMSET_FN #endif - { NULL, } + { .name = NULL, } }; int bench_mem_memset(int argc, const char **argv, const char *prefix __maybe_unused)