From patchwork Wed Jan 10 21:28:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 124137 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5774708qgn; Wed, 10 Jan 2018 13:35:20 -0800 (PST) X-Google-Smtp-Source: ACJfBovpkHlMYZlCHp7ZpSHofmCYkSL5QlYnMyBeHRkT2hThfoh8Yn/XZphSKLZo1eBW7qI7hOIk X-Received: by 10.84.232.9 with SMTP id h9mr7630129plk.46.1515620119981; Wed, 10 Jan 2018 13:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515620119; cv=none; d=google.com; s=arc-20160816; b=f58vL7w/Z+HEX0GC1jUpf4izs8+/Cn8jIoTAG/PCvSK5F8dfRc/N42h/cCuZZ+ozV0 79cflAR2cpMV7qLCrvicTB8u2wXrwinnhhJo/sBNJuvOpWujA/mI74DE3wFdqxiKg/V9 8Wz8zxoS9Kd8l4DFi0MgeWU2XBC3Yy14ikNREkwAUlFfXAnzWCB8TTQMRmXer/bSNVjM DuU7LEX594B4/X5xHJYK6XPsWxv7E30nNo+9Z15Mk6wQ0+RTPyCVSTZ9I9CGd8LNRR8h QOmqdWL2iU9/UBuQGFu8xpJtWBpXJbm06pNTlaR35/5gz+l4LhZuvwximg1rYEcQ+zNb P+Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=VnHpTpt0MHo+CIpgLYKaUnIUGXUhXSt1PxcEO7ZJ7nk=; b=bP4UWGh+RVts7Jp4dgfRKRuLA+L0lOLTctuoQFmUAuYahD2Sc6M0wFvFqxnnBWeF7i Jb1a1Bhy/SIcjGck0VZZjkrb89za50DZU9/Jj9qvgkiw7WOvlWbraGbThn9I52u7gij6 DAGmUtNSzjqAesBdpFI+wrNUblAHMhPwHwNI4NSWNnRPqAGjiszbpskniFQW2XfUd0PE gw5Bhp+ebfKMYVWvuSKxaSGUOPVoJuajdzMQv7HX16TWX6rAr7tfkeo7ktK0RGa5Dv4A u4r40d3ZXTAFnxeXgkasRFdgnaMV3MLmnSObcR0hTkV0HVZ1oCrDyCN83o9LJVOLVuLj qHEA== 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 y5si12294647pfl.33.2018.01.10.13.35.19; Wed, 10 Jan 2018 13:35:19 -0800 (PST) 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 S1753978AbeAJVfS (ORCPT + 28 others); Wed, 10 Jan 2018 16:35:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:59098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbeAJV3I (ORCPT ); Wed, 10 Jan 2018 16:29:08 -0500 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A61221742; Wed, 10 Jan 2018 21:29:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A61221742 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Wang Nan , Arnaldo Carvalho de Melo Subject: [PATCH 04/27] perf tools: Fix compile error with libunwind x86 Date: Wed, 10 Jan 2018 18:28:21 -0300 Message-Id: <20180110212844.12441-5-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180110212844.12441-1-acme@kernel.org> References: <20180110212844.12441-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Nan Fix a compile error: ... CC util/libunwind/x86_32.o In file included from util/libunwind/x86_32.c:33:0: util/libunwind/../../arch/x86/util/unwind-libunwind.c: In function 'libunwind__x86_reg_id': util/libunwind/../../arch/x86/util/unwind-libunwind.c:110:11: error: 'EINVAL' undeclared (first use in this function) return -EINVAL; ^ util/libunwind/../../arch/x86/util/unwind-libunwind.c:110:11: note: each undeclared identifier is reported only once for each function it appears in mv: cannot stat 'util/libunwind/.x86_32.o.tmp': No such file or directory make[4]: *** [util/libunwind/x86_32.o] Error 1 make[3]: *** [util] Error 2 make[2]: *** [libperf-in.o] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 It happens when libunwind-x86 feature is detected. Signed-off-by: Wang Nan Link: http://lkml.kernel.org/r/20171206015040.114574-1-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/x86/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 diff --git a/tools/perf/arch/x86/util/unwind-libunwind.c b/tools/perf/arch/x86/util/unwind-libunwind.c index 9c917f80c906..05920e3edf7a 100644 --- a/tools/perf/arch/x86/util/unwind-libunwind.c +++ b/tools/perf/arch/x86/util/unwind-libunwind.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 -#ifndef REMOTE_UNWIND_LIBUNWIND #include +#ifndef REMOTE_UNWIND_LIBUNWIND #include #include "perf_regs.h" #include "../../util/unwind.h"