From patchwork Mon Aug 4 16:17:12 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: 34882 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C1FFD20F2E for ; Mon, 4 Aug 2014 16:18:33 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf38882935obc.9 for ; Mon, 04 Aug 2014 09:18:31 -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=KZg7C62UvheOQqqOUT5xWtT4s6Xzl4jSaQ1SwjSiFrw=; b=IrT3+QQxkPjicMjgDQUq78Z1xLoX2syrc4zODO195qbk+soVqEZo9tHuzroMmpTjp5 hhMjR83CA+EW9TNArgonbG2fFk64+ge5di6TjcYFS9bIBKePdwEqxZKHYVJeX5AI2miS 2UbgnIZ3BQpkaiKSJ6Bh+MOWFBb7FVH0vIPgOO/IDSRN2QMzsgfcba0vuMHy96OpG2i9 LdHAsVoaYQpooQBld0S4oSAihpZ0rWbI7uK90I/a9gRi3QuWIwJv8jXxYxaaNjA6w37p eB6/BIzOma1jPJl+ESAt/WOQhsFVdPiPqnnLKNc5eE928vC/YUICF43DSGhqXmP1vpZ9 2oFA== X-Gm-Message-State: ALoCoQlo3JCkD6eCOcPLDxKpx6eY8bjkbJyYO2F7KiGwiWYjpC5N9hISen0TzFc09Ntq1nSdYLQf X-Received: by 10.182.104.68 with SMTP id gc4mr9475142obb.40.1407169110137; Mon, 04 Aug 2014 09:18:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.179 with SMTP id 48ls2196270qgb.10.gmail; Mon, 04 Aug 2014 09:18:30 -0700 (PDT) X-Received: by 10.52.61.136 with SMTP id p8mr1932901vdr.15.1407169110061; Mon, 04 Aug 2014 09:18:30 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id vb1si12319152veb.80.2014.08.04.09.18.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 09:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so11548936vcb.16 for ; Mon, 04 Aug 2014 09:18:29 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr6587360vdb.27.1407169109748; Mon, 04 Aug 2014 09:18:29 -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.221.37.5 with SMTP id tc5csp316984vcb; Mon, 4 Aug 2014 09:18:29 -0700 (PDT) X-Received: by 10.70.134.193 with SMTP id pm1mr4394453pdb.117.1407169108835; Mon, 04 Aug 2014 09:18:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si9065216pdj.299.2014.08.04.09.18.28 for ; Mon, 04 Aug 2014 09:18:28 -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 S1751637AbaHDQSL (ORCPT + 21 others); Mon, 4 Aug 2014 12:18:11 -0400 Received: from mail.kernel.org ([198.145.19.201]:38677 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbaHDQSG (ORCPT ); Mon, 4 Aug 2014 12:18:06 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 386A92012F; Mon, 4 Aug 2014 16:18:05 +0000 (UTC) Received: from zoo.ghostprotocols.net (unknown [179.235.153.97]) (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 448972013D; Mon, 4 Aug 2014 16:17:59 +0000 (UTC) From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mark Salter , Ingo Molnar , Jean Pihet , Paul Mackerras , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 01/33] perf tools: Fix arm64 build error Date: Mon, 4 Aug 2014 13:17:12 -0300 Message-Id: <1407169064-25625-2-git-send-email-acme@kernel.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1407169064-25625-1-git-send-email-acme@kernel.org> References: <1407169064-25625-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.220.171 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: Mark Salter I'm seeing the following build error on arm64: In file included from util/event.c:3:0: util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function) u64 cache_regs[PERF_REGS_MAX]; ^ This patch adds a PERF_REGS_MAX definition for arm64. Signed-off-by: Mark Salter Acked-by: Jean Pihet Cc: Ingo Molnar Cc: Jean Pihet Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1406325766-8085-1-git-send-email-msalter@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm64/include/perf_regs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h index e9441b9e2a30..1d3f39c3aa56 100644 --- a/tools/perf/arch/arm64/include/perf_regs.h +++ b/tools/perf/arch/arm64/include/perf_regs.h @@ -6,6 +6,8 @@ #include #define PERF_REGS_MASK ((1ULL << PERF_REG_ARM64_MAX) - 1) +#define PERF_REGS_MAX PERF_REG_ARM64_MAX + #define PERF_REG_IP PERF_REG_ARM64_PC #define PERF_REG_SP PERF_REG_ARM64_SP