From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754859AbbJSVl0 (ORCPT ); Mon, 19 Oct 2015 17:41:26 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:37466 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754211AbbJSVkb (ORCPT ); Mon, 19 Oct 2015 17:40:31 -0400 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , David Ahern , Hitoshi Mitake , Jiri Olsa , Linus Torvalds , Namhyung Kim , Peter Zijlstra , Thomas Gleixner Subject: [PATCH 23/23] perf bench: Use named initializers in the trailer too Date: Mon, 19 Oct 2015 18:39:34 -0300 Message-Id: <1445290774-13344-24-git-send-email-acme@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1445290774-13344-1-git-send-email-acme@kernel.org> References: <1445290774-13344-1-git-send-email-acme@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo 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 d1de9c4a7ddf..9419b944220f 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) -- 2.1.0