From patchwork Fri Jul 25 22:02:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salter X-Patchwork-Id: 34322 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E33C235AB for ; Fri, 25 Jul 2014 22:03:13 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gl10sf3484741lab.6 for ; Fri, 25 Jul 2014 15:03:11 -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=BtE0LUmjGsIer5pLQzgXqWa82ZMi0yQslfebilVF/vg=; b=GPyBCr3LxHDBU9NvcPcsjHmLThxZVAdsMpGQzHqS4nhAjA8/KF3/9vwBuu/Y5MbdHK EJBize7g0LaMFa1OTBQ/k5ysVarT7wIYwXiF8nbzEAw18DmDdyTUx+UTRgVAgehuQZIo mbxAI4dkTWuYai5l/kRlHCGIZ0S0A3fVfwO7ZkFIkTGoh4U00JDxti/0dRrgE1aHwMt8 hC02Ek5nRln4ofXsWognZX61fdV1n1uOUOfzApBC3SbhApGkKsDo6C2FQJb/yNlRD8B5 sz4KPoAXRJ2IhwArPoiLFBVc876v0tXmn5WuDjg2hDrAesNu5NNr03AYhW2K22lUNn8V Fmuw== X-Gm-Message-State: ALoCoQnUQ/fMKU51qbOz3F/XPVfgzDr5CBsHAnpEbb7S2wWPK3F9wpZ8XJm8aoQkM+UQ5FpKYKaM X-Received: by 10.112.163.104 with SMTP id yh8mr1951981lbb.5.1406325791557; Fri, 25 Jul 2014 15:03:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.13 with SMTP id f13ls1431469qge.65.gmail; Fri, 25 Jul 2014 15:03:11 -0700 (PDT) X-Received: by 10.52.146.176 with SMTP id td16mr2702697vdb.81.1406325791282; Fri, 25 Jul 2014 15:03:11 -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 fj3si8420683vdc.71.2014.07.25.15.03.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 15:03:11 -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 hq11so8433908vcb.2 for ; Fri, 25 Jul 2014 15:03:11 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr20368887vdb.27.1406325791105; Fri, 25 Jul 2014 15:03:11 -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 tc5csp69254vcb; Fri, 25 Jul 2014 15:03:10 -0700 (PDT) X-Received: by 10.70.109.196 with SMTP id hu4mr21776238pdb.58.1406325789577; Fri, 25 Jul 2014 15:03:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si5253337pdd.122.2014.07.25.15.03.08 for ; Fri, 25 Jul 2014 15:03:09 -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 S1761083AbaGYWDG (ORCPT + 17 others); Fri, 25 Jul 2014 18:03:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18275 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbaGYWDE (ORCPT ); Fri, 25 Jul 2014 18:03:04 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6PM2un8023709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Jul 2014 18:02:56 -0400 Received: from deneb.redhat.com (ovpn-113-127.phx2.redhat.com [10.3.113.127]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6PM2tV6025753; Fri, 25 Jul 2014 18:02:55 -0400 From: Mark Salter To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Jean Pihet , Mark Salter Subject: [PATCH v2] perf: fix arm64 build error Date: Fri, 25 Jul 2014 18:02:46 -0400 Message-Id: <1406325766-8085-1-git-send-email-msalter@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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: msalter@redhat.com 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: , 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 --- 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 e9441b9..1d3f39c 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