From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752419AbdJXKQy (ORCPT ); Tue, 24 Oct 2017 06:16:54 -0400 Received: from terminus.zytor.com ([65.50.211.136]:49619 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751993AbdJXKQv (ORCPT ); Tue, 24 Oct 2017 06:16:51 -0400 Date: Tue, 24 Oct 2017 03:14:38 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: linux-kernel@vger.kernel.org, jolsa@kernel.org, wangnan0@huawei.com, acme@redhat.com, adrian.hunter@intel.com, namhyung@kernel.org, dsahern@gmail.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de Reply-To: namhyung@kernel.org, dsahern@gmail.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, acme@redhat.com, wangnan0@huawei.com, jolsa@kernel.org, adrian.hunter@intel.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Do not check ABI headers in a detached tarball build Git-Commit-ID: d7e05ceaa93417f6f0077444eb111f64df823d25 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d7e05ceaa93417f6f0077444eb111f64df823d25 Gitweb: https://git.kernel.org/tip/d7e05ceaa93417f6f0077444eb111f64df823d25 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 16 Oct 2017 15:53:08 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 23 Oct 2017 16:30:50 -0300 perf tools: Do not check ABI headers in a detached tarball build When we use one of: [acme@jouet linux]$ make help | grep perf perf-tar-src-pkg - Build perf-4.14.0-rc3.tar source tarball perf-targz-src-pkg - Build perf-4.14.0-rc3.tar.gz source tarball perf-tarbz2-src-pkg - Build perf-4.14.0-rc3.tar.bz2 source tarball perf-tarxz-src-pkg - Build perf-4.14.0-rc3.tar.xz source tarball [acme@jouet linux]$ I.e. when we create a detached tarball to build perf outside outside the enveloping kernel sources (from a kernel tarball or a checked out linux.git directory) we by definition can't check for differences among the tools/{include,arch}, etc files we originally copied from the kernel, so bail out in that case, to avoid warnings when doing the detached builds. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-vbrga0mhplv7niwxr3ghjyxv@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/check-headers.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh index 932fda5..3226294 100755 --- a/tools/perf/check-headers.sh +++ b/tools/perf/check-headers.sh @@ -57,6 +57,11 @@ check () { } +# Check if we have the kernel headers (tools/perf/../../include), else +# we're probably on a detached tarball, so no point in trying to check +# differences. +test -d ../../include || exit 0 + # simple diff check for i in $HEADERS; do check $i -B