Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp265780img; Mon, 18 Mar 2019 02:37:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1Tgxj9i7V8J++6Oeyvy6nVeznNUCq6mcI7OYEv4fqRU/3dLJC1qcc1wh4drtCYiQITlwX X-Received: by 2002:a65:654d:: with SMTP id a13mr17201892pgw.181.1552901856491; Mon, 18 Mar 2019 02:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552901856; cv=none; d=google.com; s=arc-20160816; b=VWl1LuZFpYzI5pzi+Zbqq3Uln7JtzARsFIyzMjWwhzOpyH6Gx5FOETA4gRZzCw9edk YvMCCRwpxxSGq7ayhW7+n6qgaMMbnSKEa+Uvsu1M3B7RJ0JdmcRu8+KwKNc+BSwx/MRM QdPQBpIKAsdWRS3KJusTvnIr2mk/9sm92VwFBSZCXNlknpacFGvZwDnIEqpXLjwQQMZd 1rW9ITBbqu1FqK2d+ruYaJLaT/uI+qjGRPpay9M3reuV5PUqNeoGaEYlXl/qJu8YCW++ 5hkbyDCW7kmQ+fm84dtS73PgQ4k99zRtFhtokCC9fQcpd7k4U7Xd1qtD9uh1GHo3JlgD 9Quw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N2cyjJj/ItNVNwrjbt/CwymtZl30MwcZjCPzVhI3250=; b=wiQrTDwW7FfFkKUVqLZy7RNBogSyM2LCB2PgMFmMECupZJNtIVGhnzLVi+VaBFypIW DVsw680GGsvr301XPxYQK9Lj9rlncNubkxk1DuCE2DxHhdqLUwsc1P3klcDfp3FWpDE/ biurnZlvu6Zeg1js4WcztDqLmeIxjaFTdd+ed4Ckp5btNtItvWj0FFkYTSSNYuYSkruG HhmowndskUc0Kpm+5EIVklAh7EbuExpfyZFbhHzURHFhGWSTOoNxUyQkE2Fl4uCquirV 7ISk0/aj6YNBVB2/G6jT6LUbIEJiL3+frbg0I8UzG/t1TBZq0rGAui/pJHyZWJ+Y71GN sfmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ja1M798N; 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 q23si370090pgj.320.2019.03.18.02.37.21; Mon, 18 Mar 2019 02:37:36 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ja1M798N; 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 S1729068AbfCRJey (ORCPT + 99 others); Mon, 18 Mar 2019 05:34:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:43268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729062AbfCRJex (ORCPT ); Mon, 18 Mar 2019 05:34:53 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 1571F214AF; Mon, 18 Mar 2019 09:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552901692; bh=1sWrHCNmxVfJI95nB5UKrV6LdQp8oio9h65LtjMIrKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ja1M798NgffMqfSgS9LX0hPxu4EtSCtYzwBhGtxL4eneJgTxktFnMXbF+YjwAzL5Y /crrZi9RukP/iqu/TtAr3q072GzJ8G2wOxYmd0Jg24mDCJzhxgZm85egVMTlUz6hFh jJRzxl9ZNLc85nLmOzslGzQFvh6iGiMT8ftHlaLU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wang Nan , Arnaldo Carvalho de Melo , =?UTF-8?q?Daniel=20D=C3=ADaz?= Subject: [PATCH 4.14 02/34] perf tools: Fix compile error with libunwind x86 Date: Mon, 18 Mar 2019 10:25:26 +0100 Message-Id: <20190318084144.978483715@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190318084144.657740413@linuxfoundation.org> References: <20190318084144.657740413@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wang Nan commit 44df1afdb174fd6038e419f80efd914c0b5f2f85 upstream. 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 Cc: Daniel Díaz Signed-off-by: Greg Kroah-Hartman --- tools/perf/arch/x86/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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"