Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp636116oof; Tue, 25 Sep 2018 02:36:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62c1VPUlVnRH8OoGckuGLSKb4kycsem37Oe23qkyvYvcrCaeG1uIUESYwnPPtvz1wsDW3ya X-Received: by 2002:a63:b23:: with SMTP id 35-v6mr176738pgl.301.1537868173796; Tue, 25 Sep 2018 02:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537868173; cv=none; d=google.com; s=arc-20160816; b=lNfrMqKeTV2/n+1FXADMcEce+Q4aaQ/QRNNJSJCpyzLxORStrQwH5JQ5FF/FKSd7GC hoxOmPWJ/x88f7Yr6SM+SJPb77GYvtQi/DvRyDBNc4lT3dmiulSYX8Onij7A5NfNzDLI K+R36ChkGOYV024CgW/4m7q3oFXKNAJGula9znNYu4jwLniOxi17UAjc1bmewSFOhZOd OPbRA4CGfxUt7F1iWUQA7e++am6vcLhwY4yjocwEj3mAhw0sf7MOR4hU9IbgqbqrNhnG ReWyqxAfs8jr/VqEuTkqKv5LJdCb/66lmLMDwA6Gcgysa5/q4eABMPS/j4g4gjuqtw5z ct8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=EUR90JPCciCqLg3jPiYkHvstja6l4z6xqM8Qy0RnhgI=; b=kDtFolxg7jARScR3lyHNmWkdPAfshtqmFLY/kFK0KLuUt1udxtIHAfhI7QGZsZYPWh BYlcLFQySRF7q/mXu4HtapTFve00/vvYsLcbdraRvXzDiUP/7SJ2hAO9R+imd0oUMvQn t6qAgT+HRqSybWaHRqyj77OUdHvkTRLoNbqkhh7JV3gfSpAZFVJRyiz4D1iWVkjVUtrv xCUCf9qVNCK+SdL8El9RXQ80d35UicjEAJEXdW6fSgLxiWi67fRJMJDOb/kHSz9k/Hsr 8PZ4Ig4e1bLb9PhLNw/sOmlQcGKE5MDpB1Yuv4hTN0H7yGMOzIqOOzZtq0DuG6Bf6lOR rkXg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2-v6si1949220pge.64.2018.09.25.02.35.58; Tue, 25 Sep 2018 02:36:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728816AbeIYPmK (ORCPT + 99 others); Tue, 25 Sep 2018 11:42:10 -0400 Received: from terminus.zytor.com ([198.137.202.136]:46639 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbeIYPmK (ORCPT ); Tue, 25 Sep 2018 11:42:10 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8P9Xqrh3386446 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 25 Sep 2018 02:33:52 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8P9XqZJ3386443; Tue, 25 Sep 2018 02:33:52 -0700 Date: Tue, 25 Sep 2018 02:33:52 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for =?UTF-8?Q?J=C3=A9r=C3=A9mie?= Galarneau" Message-ID: Cc: acme@redhat.com, jolsa@kernel.org, tglx@linutronix.de, peterz@infradead.org, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, jeremie.galarneau@efficios.com, mingo@kernel.org, hpa@zytor.com Reply-To: alexander.shishkin@linux.intel.com, jeremie.galarneau@efficios.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, acme@redhat.com, jolsa@kernel.org, tglx@linutronix.de, peterz@infradead.org In-Reply-To: <20180829201648.19588-1-jeremie.galarneau@efficios.com> References: <20180829201648.19588-1-jeremie.galarneau@efficios.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Initialize perf_data_file fd field Git-Commit-ID: c04c859f439fb4de9039246370d60a07b9b5bcb5 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c04c859f439fb4de9039246370d60a07b9b5bcb5 Gitweb: https://git.kernel.org/tip/c04c859f439fb4de9039246370d60a07b9b5bcb5 Author: Jérémie Galarneau AuthorDate: Wed, 29 Aug 2018 16:16:48 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 19 Sep 2018 10:25:13 -0300 perf tools: Initialize perf_data_file fd field 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 4b838b0db4e9 ("perf tools: Add compression id into 'struct kmod_path'") and the ensuing discussion on the mailing list, it appears that this affects other distributions and gcc versions. Signed-off-by: Jeremie Galarneau Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180829201648.19588-1-jeremie.galarneau@efficios.com Signed-off-by: Arnaldo Carvalho de Melo --- 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, };