From patchwork Mon Dec 18 06:22:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 122184 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2456029qgn; Sun, 17 Dec 2017 22:25:28 -0800 (PST) X-Google-Smtp-Source: ACJfBov/C/ZUVZTMNImYYLSv4dEwJhBTNYSHQbPYAwtQd+tU1+0si+4usLfFZJqtM5WxkxzVZI/9 X-Received: by 10.84.224.75 with SMTP id a11mr21248024plt.421.1513578328793; Sun, 17 Dec 2017 22:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513578328; cv=none; d=google.com; s=arc-20160816; b=ZWrEEOdgNNDoYNbFeIBSpMxoY2U2MrTKqIh82x6pd6xVReCMtjp3DLTjEm6XBxP29q 9DOEY/WGDSPqM/NjAwItAsJfJr4E5GDLSh4Y5lQ9JOAqR16dz+aTH2LWlDlf/U54Uwu2 jSC1CEuXUx5lcJvVsjDgl0XmrH4wRdNt9ybwcNaVqewGjCjx2sbOmTTdGL2h2HARv+iq cuZC+X8WXOihKGcPq20hEd+ZEU/4QV4whbMliwGacdSimWZ2o3Vig6b2jv8i6vPjEeX8 Os3RoVfMr6l6ydTZWgAxaMQlyBLhALoQaaDFMVl25SltNyhE383s5pOuiGfPUCokbDlW p4eQ== 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=d9ZQGN+ImsRhAtrUx/gUlQ/wXILfc41C1bo206z1vU8=; b=mu06pJ/Lj5pyEoNfR7MuOpPd2TUVg+ZigKioD+LGmPWDp/bYDOt8K64kCt7fvgoXfa isZti5Snc6Uud/OshtLTXWMU3vbXHQZDPYRPSBLxq4d+cRvX6WHcAnJ5cN91F3E8nwLJ d9ios/cff7USPX55GW26osxwpnEQSoY8EpmhKCQNgM2ivzOkrJtNZWDaIssTFVNRlGsn GwzP4CC2yqmDMiENniJTKtKMnsC9Zbn6sbRwv7z8jKINVohWRGHuE9oH6Llh90LRshnD OK+IuwSdwdsPu31KBomrS8lcW0wXJw0Vxs8pBXnSsFu8sjphovJ9K4HG/PZxuogKhVsK fmSQ== 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 h74si9004056pfe.172.2017.12.17.22.25.28; Sun, 17 Dec 2017 22:25:28 -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 S1757805AbdLRGZX (ORCPT + 28 others); Mon, 18 Dec 2017 01:25:23 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:53177 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1757650AbdLRGZV (ORCPT ); Mon, 18 Dec 2017 01:25:21 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0AA2A22DB1A1E; Mon, 18 Dec 2017 14:25:08 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Mon, 18 Dec 2017 14:25:02 +0800 From: Wang Nan To: , CC: , Wang Nan Subject: [RESEND PATCH] perf tools: Fix compiling error in libunwind x86 Date: Mon, 18 Dec 2017 06:22:47 +0000 Message-ID: <20171218062247.191156-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 Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa --- 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"