Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5589353imm; Tue, 18 Sep 2018 12:00:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ68JoSi/a6J+jy9HzIOePV0BYX0lLiORlHwJ4v45C9vxxHejZWnem9EnkcV/qjnbPlvucQ X-Received: by 2002:a62:174a:: with SMTP id 71-v6mr32643746pfx.217.1537297210064; Tue, 18 Sep 2018 12:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537297210; cv=none; d=google.com; s=arc-20160816; b=ySpWT7h7O16thLCqYNRKpyqfOfHcx8qVBAL+Ia7PxoInxXdI5vd4y9tJWKnXD6ujVl xi9/TFUVQo4RF0FWuWz29Wli+uLw/naS0M+qyiq6P3PWCZeLszp7mgfuGAsnTI9OS17t mvMh2IHkdSVD5+LoVR4BAvGWg1lCZ4Yy0jADu3QZv4TwBFrfIClrHZwxwzJgAsiXmDad NCg3GgFWiMr3M7LI236lm2NgK+aO8kPlI4vNRaj/D87fKsM2eMsuyBseuBC1NZLwnT54 gzVFGSUd+p8YsqKfAlAqYh//NuXN1UjiO7qyOdOys53W9UyGWr/ecYSIqsnV/n7rA/9d 0DIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xtpREiPrmI1kONAvTnJRiau2/wf9091ftLRR5xTjPhY=; b=W/mkubZQKENI1bQIbFcrPG4R6ia65SiGoKiJe1WuEoZnlyCX90Yy3qzNd/7wT1YqKc eDd2npv7WV92sL+pfvauio0iv+rHO9QTJLA3elI4gHg1ZOGvp+XWD2wl9j464V2aZyei xkDv+0QPnXJ5n0248frWVOSNbrs5i/Mu5zDCUN+Lno8gvSCJGb+X8CI8XgxRhOXw4XLZ EQr7/XiD1X/MZdmU/Rdmt8lq1ks0QqEWh598V7UgmY8uUktwLYIxiS+i6kYfBypHtXZ+ HNFIfdX3k6CTmcM/dV+0Ly6p4kFBSYFbyPVL9GwodMZSqllIdHwbO8s73mwmKtmIUbKz Y6aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si18035349pff.30.2018.09.18.11.59.52; Tue, 18 Sep 2018 12:00:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729416AbeISAdo (ORCPT + 99 others); Tue, 18 Sep 2018 20:33:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51900 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728605AbeISAdo (ORCPT ); Tue, 18 Sep 2018 20:33:44 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AFF333082145; Tue, 18 Sep 2018 18:59:47 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-3.gru2.redhat.com [10.97.112.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 58DD31001F56; Tue, 18 Sep 2018 18:59:46 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id 6A40C10BD; Tue, 18 Sep 2018 15:59:44 -0300 (BRT) Date: Tue, 18 Sep 2018 15:59:44 -0300 From: Arnaldo Carvalho de Melo To: =?iso-8859-1?Q?J=E9r=E9mie?= Galarneau Cc: Jiri Olsa , lkml , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Alexander Shishkin Subject: Re: [PATCH] perf tools: Initialize perf_data_file fd field Message-ID: <20180918185944.GA2695@redhat.com> References: <20180829201648.19588-1-jeremie.galarneau@efficios.com> <20180905160918.GB29759@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 18 Sep 2018 18:59:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Sep 18, 2018 at 02:07:41PM -0400, Jérémie Galarneau escreveu: > Hi Arnaldo, > > Anything I can do to help you with this patch? Thanks for the reminder, will apply. - Arnaldo > Thanks, > Jérémie > > On 5 September 2018 at 12:09, Jiri Olsa wrote: > > On Wed, Aug 29, 2018 at 04:16:48PM -0400, Jérémie Galarneau wrote: > >> Building the perf CTF converter fails with gcc 4.8.4 > >> on Ubuntu 14.04 with the following error: > >> > >> error: missing initializer for field ‘fd’ of ‘struct perf_data_file’ > >> [-Werror=missing-field-initializers] > >> > >> Per 4b838b0d and the ensuing discussion on the mailing > >> list, it appears that this affects other distributions > >> and gcc versions. > >> > >> Signed-off-by: Jérémie Galarneau > > > > Acked-by: Jiri Olsa > > > > thanks, > > jirka > > > >> Cc: Jiri Olsa > >> Cc: Arnaldo Carvalho de Melo > >> Cc: Peter Zijlstra > >> Cc: Ingo Molnar > >> Cc: Alexander Shishkin > >> --- > >> tools/perf/util/data-convert-bt.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c > >> index abd38abf1d91..f75d4aa612c5 100644 > >> --- a/tools/perf/util/data-convert-bt.c > >> +++ b/tools/perf/util/data-convert-bt.c > >> @@ -1578,7 +1578,7 @@ int bt_convert__perf2ctf(const char *input, const char *path, > >> { > >> struct perf_session *session; > >> struct perf_data data = { > >> - .file.path = input, > >> + .file = { .path = input, .fd = -1 }, > >> .mode = PERF_DATA_MODE_READ, > >> .force = opts->force, > >> }; > >> -- > >> 2.18.0 > >> > > > > -- > Jérémie Galarneau > EfficiOS Inc. > http://www.efficios.com