From patchwork Wed Dec 6 01:50:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 120786 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6477792qgn; Tue, 5 Dec 2017 17:52:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMY3XA122bgcNL/BMHStSCMums7o7AJEYne/LV30+1LyIXMuhuz6j0cOgWZTSGJDQF839zis X-Received: by 10.99.127.88 with SMTP id p24mr19346659pgn.98.1512525171493; Tue, 05 Dec 2017 17:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512525171; cv=none; d=google.com; s=arc-20160816; b=xzTB9Dzi5xfQKYaw2kTndc13O4BFf1ckijUyp4PvxsFDcFPlSxdidMSVtluWerR9SM sTM7neZccZGcXJlhrF6eIWN4seBXHr4H4+Ww27avp8tpP/yJ3AgxRJOJTzLYLOE2qdce SrAD0jL+idG7gD6i8SaeVrWhE5zHwGGEdsOgpqRIoLtmY/7OqfgODiBXQsyGqqNYmGIA QVelvbnmxxg5GRSX6Cd6/SH4ldYZF6I/gnoDWNOnpWPYfKSnXYdyKXPrDzfIakw1tC7F ylX62pdcE6n0+9RUNT4egelLmW6a2VFwUyce6JZi1Shn+Yrv8b+vrPyg+XJueBSH9l/m e6nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=rjhp3pJgs+qHA0Ce9nH/F8O8PIHGfoLin/0LzrAkAtw=; b=kHFdQFxFPnApyQz5nejoNzY+6xOmhbcrhNHpNMFRtmEjt30extNy/l318uP+2cUPi6 6vSCW9e4EEaYSasih02TIp/Fk0CVX05BujznY8Rh66/xAUh5oXb1Gnzb/d7xqPpiY20v KGFS0+1d0ccx5E7+jbhawKUWdGp9gSZNxqR1HzquUfR17Fb5b5YiHaU42B3UpHZEQG5O AL9Hiwh6uF0JidOYXq4roe3Lxxt2n4M4CFd82x1p+r2i7EODy1EBSz4xo0T4ehTxA8Ld MK4gJgDIWX5mzM8kLYmKZKEa/Y49tkhDKOpByJmCZIIbnH4kF9CpUFhgwgvf6S2nUHlK 212w== 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 p75si1062338pfi.396.2017.12.05.17.52.51; Tue, 05 Dec 2017 17:52:51 -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 S1754105AbdLFBwt (ORCPT + 28 others); Tue, 5 Dec 2017 20:52:49 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:55699 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753814AbdLFBwq (ORCPT ); Tue, 5 Dec 2017 20:52:46 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2C1A815FADCA9; Wed, 6 Dec 2017 09:52:33 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Wed, 6 Dec 2017 09:52:27 +0800 From: Wang Nan To: , CC: Wang Nan Subject: [PATCH] perf tools: Fix compiling error in libunwind x86 Date: Wed, 6 Dec 2017 01:50:40 +0000 Message-ID: <20171206015040.114574-1-wangnan0@huawei.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a compiling 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 --- tools/perf/arch/x86/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.1 diff --git a/tools/perf/arch/x86/util/unwind-libunwind.c b/tools/perf/arch/x86/util/unwind-libunwind.c index 9c917f8..05920e3 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"