From patchwork Wed Oct 1 19:50:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 38252 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3741202E7 for ; Wed, 1 Oct 2014 19:51:55 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf289329lab.5 for ; Wed, 01 Oct 2014 12:51:54 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=bkkvMSWE97kouOVEIEV/xPTa6m+WfS7c8tXzjTPWHpc=; b=OzmUskHmFvFPdh+RNCHkD7SpvY5NKyc5VG3wY5t0qz1lHsvLID1IMwGe1hHPAch2z/ mXqw3jdcooN59bS16aQq0ZiAdNi16zaLzw/IYXA1QvlLyAt9jSJV2XapeeGHZFYlnGZD icODfm9wAhV1UEpH/ZomMBFWY6jNe/7Gg3pKnKBQN2p4yjreExsc9/pc+8Yr6Z5/5uLs SvILJ7WY5HCzCsOJ/LED/XyAZXS8wPwZsPV5CRs3JurDaYx7UfmUPb6+evPMupY/yK8e tDiIlhTicmklUPjUpmi99zR4alVNCt1NVRKJNnRt6caW807irbedhQSmKg85rdAuPZRH caTA== X-Gm-Message-State: ALoCoQmfmujPUq+V5hVKSf8t4ObRUrTkcJoGWdfco1nFixMrNf3ZZq54HUEJGB6R3C7v4n7eWI/s X-Received: by 10.180.14.225 with SMTP id s1mr2519422wic.5.1412193114647; Wed, 01 Oct 2014 12:51:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.169 with SMTP id c9ls193377laa.56.gmail; Wed, 01 Oct 2014 12:51:54 -0700 (PDT) X-Received: by 10.152.21.168 with SMTP id w8mr59288688lae.59.1412193114428; Wed, 01 Oct 2014 12:51:54 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id kv1si965236lac.53.2014.10.01.12.51.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Oct 2014 12:51:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so1034548lbj.17 for ; Wed, 01 Oct 2014 12:51:54 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr53531889lbh.67.1412193114309; Wed, 01 Oct 2014 12:51:54 -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 of9csp601678lbb; Wed, 1 Oct 2014 12:51:53 -0700 (PDT) X-Received: by 10.70.49.231 with SMTP id x7mr84300171pdn.75.1412193112728; Wed, 01 Oct 2014 12:51:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1837210pdp.54.2014.10.01.12.51.52 for ; Wed, 01 Oct 2014 12:51:52 -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 S1752506AbaJATvf (ORCPT + 27 others); Wed, 1 Oct 2014 15:51:35 -0400 Received: from mail.kernel.org ([198.145.19.201]:47865 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbaJATvb (ORCPT ); Wed, 1 Oct 2014 15:51:31 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83FF7201FA; Wed, 1 Oct 2014 19:51:29 +0000 (UTC) Received: from zoo.ghostprotocols.net.ghostprotocols.net (unknown [179.235.155.132]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E8192026F; Wed, 1 Oct 2014 19:51:26 +0000 (UTC) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Will Deacon , Jean Pihet , Jiri Olsa , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo Subject: [PATCH 7/8] perf tools: Fix build breakage on arm64 targets Date: Wed, 1 Oct 2014 16:50:42 -0300 Message-Id: <1412193043-15493-8-git-send-email-acme@kernel.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1412193043-15493-1-git-send-email-acme@kernel.org> References: <1412193043-15493-1-git-send-email-acme@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: acme@kernel.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.217.172 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: , From: Will Deacon Attempting to build the perf tool for an arm64 target results in the following failure: arch/arm64/util/unwind-libunwind.c: In function 'libunwind__arch_reg_id': arch/arm64/util/unwind-libunwind.c:77:3: error: implicit declaration of function 'pr_err' pr_err("unwind: invalid reg id %d\n", regnum); ^ arch/arm64/util/unwind-libunwind.c:77:3: error: nested extern declaration of 'pr_err' This is due to commit 84f5d36f4866 ("perf tools: Move pr_* debug macros into debug object") moving the pr_* macros into a new header file, but failing to update architectures other than x86. This patch adds the missing include, and fixes the build again. Signed-off-by: Will Deacon Cc: Jean Pihet Cc: Jiri Olsa Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1412076432-22045-1-git-send-email-will.deacon@arm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm64/util/unwind-libunwind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c index 436ee43859dc..a87afa91a99e 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) {