Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4003536imm; Wed, 5 Sep 2018 09:10:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYdA66h3GAO7z/1IDd9mfDxTolDJBB/rfxwrlPd1RP6nesgdwCslRGqFkD0TAmTFh7j7VGM X-Received: by 2002:a63:cc4f:: with SMTP id q15-v6mr36567696pgi.217.1536163854017; Wed, 05 Sep 2018 09:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163853; cv=none; d=google.com; s=arc-20160816; b=S122ktZ7/0+Aw3TsBJr8xwVsZsy5KCvh8zPP/N1tb7J1uzULxJMIdWO/Knp7/Tt96F gHC5ZRFj+7H6omiMw2r5Fy8saHUaIId/tBNA4u7KarOS9Q+RVgT51RdAZhxs2HeUfjXq uueJfMvcPc6UQ0l0JgZuev4jF2W9pdyeSzzc7lqIj1TTfHxT+GS9E5O7MSOJLt4zL5Pi GBI4KAawmKoLLoDPiuLsXgwGwIHo+QGo2JBpIKAZ4mpWeulxd9+A9bNaGnmCWWON2k5F hgtTBxtySFoV4f/zD4XHfTCxyQ2Z3/GfaBj7K1+8Pi9fgRAiIs7C+g7gQXghbd6BMOeE pD3A== 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=Cze5kglUtCc6qw0WHVWkjTfa5ZTLguvPWuX9X7LJqyE=; b=ZGw2wXbq5nQD37gKJ+4o/HAq5px1cG3+N8KAg5CLLP12kThS7EhmEU6+0SGwO+6qOV U9AvAUkxYMhH6CurGCMjB2609rFicVL4T2uUnYzWnJrn4jTkLbUmbyxQ4ocSkxRacDhu qrolHYXPlXBCkkSFr5iyOxohOtbTBh8Hsx1vd5cvx3hV97Py/aoKI/i5e+TeYAmUD/Pt gAV5qVv0Sg8TeyXbEhAx/tLBiiRd+7WGRDg+Tu9N803Jf+6nFNSa3YvtXWQp0KCw+PiR 4ABnZxGq3yDtTLSPvkuL6DOmmTAhXXFGIp3/YMCUg39j6otrovTKHy6yppfu5Kgcx1HF J6Zg== 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 r11-v6si2563455pfc.253.2018.09.05.09.10.37; Wed, 05 Sep 2018 09:10:53 -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 S1727593AbeIEUkO (ORCPT + 99 others); Wed, 5 Sep 2018 16:40:14 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46126 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727145AbeIEUkO (ORCPT ); Wed, 5 Sep 2018 16:40:14 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 451B48011059; Wed, 5 Sep 2018 16:09:22 +0000 (UTC) Received: from krava (unknown [10.43.17.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 20B63B27BD; Wed, 5 Sep 2018 16:09:19 +0000 (UTC) Date: Wed, 5 Sep 2018 18:09:19 +0200 From: Jiri Olsa To: =?iso-8859-1?Q?J=E9r=E9mie?= Galarneau Cc: linux-kernel@vger.kernel.org, Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Alexander Shishkin Subject: Re: [PATCH] perf tools: Initialize perf_data_file fd field Message-ID: <20180905160918.GB29759@krava> References: <20180829201648.19588-1-jeremie.galarneau@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180829201648.19588-1-jeremie.galarneau@efficios.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 05 Sep 2018 16:09:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 05 Sep 2018 16:09:22 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >