From patchwork Tue Sep 23 02:14:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 37708 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74621202A1 for ; Tue, 23 Sep 2014 02:14:39 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id t60sf2114671wes.1 for ; Mon, 22 Sep 2014 19:14:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=wsHclbv/HkdfY75ii2FvLnfRL3gB/9YnC5qkcIwnSi8=; b=aXM1Qin91HWwX4143ohIK25O9ZC/IKsy0oLMvmc5O9crmaMcdUk89t+PCej6T4W9Ba CmcumebZYyhU25eOXe/+RV/tXyJtIzWUpiK4WsYqmEYHee68AWIsa5kTXkIKYnCvm+Ef bZTt3CSSkV4/BBd17BEkl1bFju/bL7FCN96Jec4MtxIftKvt6u4I05vWgWDoY+UlE5bw jxXVzjTiLb2Ddl7NUtEG8XFzucYdQ3YgGIFM42m3tDj8w/HjV2FEmwapA5qZyaAP4Y/l 8jqAJbHGhD+tftB/zJSlH6Nmnw9ZdYL2agTIBOozxjovhKASFgJCagT4GmbYrGENfUZq 8f7w== X-Gm-Message-State: ALoCoQm8RpM4rECjk/YGCbH9K09gYBIEQYli04sA3S5UWfsK9Q9dXlqgWVZRRgOvgVl6A4MzpZxW X-Received: by 10.180.160.169 with SMTP id xl9mr2538040wib.7.1411438478607; Mon, 22 Sep 2014 19:14:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.175 with SMTP id az15ls568973lab.96.gmail; Mon, 22 Sep 2014 19:14:37 -0700 (PDT) X-Received: by 10.152.19.166 with SMTP id g6mr4259057lae.37.1411438475879; Mon, 22 Sep 2014 19:14:35 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx.google.com with ESMTPS id tw9si16683187lbb.0.2014.09.22.19.14.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 19:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id q1so7882497lam.31 for ; Mon, 22 Sep 2014 19:14:35 -0700 (PDT) X-Received: by 10.152.36.134 with SMTP id q6mr29669167laj.35.1411438475761; Mon, 22 Sep 2014 19:14:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp340000lbb; Mon, 22 Sep 2014 19:14:35 -0700 (PDT) X-Received: by 10.68.201.67 with SMTP id jy3mr11242993pbc.81.1411438474308; Mon, 22 Sep 2014 19:14:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sm2si18106173pac.138.2014.09.22.19.14.33 for ; Mon, 22 Sep 2014 19:14:34 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755764AbaIWCOb (ORCPT + 27 others); Mon, 22 Sep 2014 22:14:31 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:39517 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982AbaIWCOa (ORCPT ); Mon, 22 Sep 2014 22:14:30 -0400 Received: by mail-lb0-f172.google.com with SMTP id p9so7260801lbv.17 for ; Mon, 22 Sep 2014 19:14:28 -0700 (PDT) X-Received: by 10.152.18.130 with SMTP id w2mr6319063lad.89.1411438468806; Mon, 22 Sep 2014 19:14:28 -0700 (PDT) Received: from localhost.localdomain (a91-152-78-194.elisa-laajakaista.fi. [91.152.78.194]) by mx.google.com with ESMTPSA id mn4sm4308160lbb.4.2014.09.22.19.14.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Sep 2014 19:14:27 -0700 (PDT) From: Fathi Boudra To: linux-kernel Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Jean Pihet , Namhyung Kim , Masanari Iida , Will Deacon , Fathi Boudra Subject: [PATCH 1/1] tools/perf: add missing include debug.h for arm/arm64 Date: Tue, 23 Sep 2014 05:14:23 +0300 Message-Id: <1411438463-14159-1-git-send-email-fathi.boudra@linaro.org> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fathi.boudra@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Fix perf build failure on arm/arm64 architectures introduced by commit 84f5d36f4 (move pr_* debug macros into debug object): arch/arm/util/unwind-libunwind.c: In function 'libunwind__arch_reg_id': arch/arm/util/unwind-libunwind.c:43:3: error: implicit declaration of function 'pr_err' [-Werror=implicit-function-declaration] pr_err("unwind: invalid reg id %d\n", regnum); ^ arch/arm/util/unwind-libunwind.c:43:3: error: nested extern declaration of 'pr_err' [-Werror=nested-externs] cc1: all warnings being treated as errors make[2]: *** [arch/arm/util/unwind-libunwind.o] Error 1 arch/arm/tests/dwarf-unwind.c: In function 'sample_ustack': arch/arm/tests/dwarf-unwind.c:20:3: error: implicit declaration of function 'pr_debug' [-Werror=implicit-function-declaration] pr_debug("failed to allocate sample uregs data\n"); ^ arch/arm/tests/dwarf-unwind.c:20:3: error: nested extern declaration of 'pr_debug' [-Werror=nested-externs] cc1: all warnings being treated as errors make[2]: *** [arch/arm/tests/dwarf-unwind.o] Error 1 Signed-off-by: Fathi Boudra --- tools/perf/arch/arm/tests/dwarf-unwind.c | 1 + tools/perf/arch/arm/util/unwind-libunwind.c | 1 + tools/perf/arch/arm64/util/unwind-libunwind.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/perf/arch/arm/tests/dwarf-unwind.c b/tools/perf/arch/arm/tests/dwarf-unwind.c index 9f870d2..62eff84 100644 --- a/tools/perf/arch/arm/tests/dwarf-unwind.c +++ b/tools/perf/arch/arm/tests/dwarf-unwind.c @@ -3,6 +3,7 @@ #include "thread.h" #include "map.h" #include "event.h" +#include "debug.h" #include "tests/tests.h" #define STACK_SIZE 8192 diff --git a/tools/perf/arch/arm/util/unwind-libunwind.c b/tools/perf/arch/arm/util/unwind-libunwind.c index 729ed69..62c397e 100644 --- a/tools/perf/arch/arm/util/unwind-libunwind.c +++ b/tools/perf/arch/arm/util/unwind-libunwind.c @@ -3,6 +3,7 @@ #include #include "perf_regs.h" #include "../../util/unwind.h" +#include "../../util/debug.h" int libunwind__arch_reg_id(int regnum) { diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c index 436ee43..a87afa9 100644 --- a/tools/perf/arch/arm64/util/unwind-libunwind.c +++ b/tools/perf/arch/arm64/util/unwind-libunwind.c @@ -3,6 +3,7 @@ #include #include "perf_regs.h" #include "../../util/unwind.h" +#include "../../util/debug.h" int libunwind__arch_reg_id(int regnum) {