From patchwork Wed Jun 25 03:16:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salter X-Patchwork-Id: 32449 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9E4DA20676 for ; Wed, 25 Jun 2014 03:17:12 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id rq2sf4785835pbb.6 for ; Tue, 24 Jun 2014 20:17: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=MB6LbEEJpCPWuuwxpz5CSE11lC5DS7UzkYXkvhrBx/Y=; b=krVqj8+cUa9xCnCW4E4xUBHjUQnQTM4wMVygloSP0geIIxTdgaeuRaU+QmKMLoFTP4 dHTGopj9EKl32OHOjgt+D+OSZIoKIkq/g60cfbJwcFCaSCNnh2U6YqmxQbOvo7CNY2fy uVP1T1BQ1dc6hCcwuSSTr35CeGUuabw1R+A5ttBW9e8g/gJ1orKLNdYxsNi2JiEja6F5 +et0nB/pX8Tu25lUX2Hg/SJ6XZfATJb5P/VGQN0V6oithie7GKwf37AIhSJNDckbfC2X MyTZsMwzeOyZ2rtibLQZxr2zobsghHqBZHITn3bc01Wrw1lOxvnka7Svws8SRp97Dcv6 0UJg== X-Gm-Message-State: ALoCoQlQDpK6JXvpnqrgcODKDxnta+lMsSHHfRBVLGJ+hc6Q91Uoo82hsAAzGhyws8h4xW7i2Wii X-Received: by 10.66.156.2 with SMTP id wa2mr2969395pab.0.1403666231935; Tue, 24 Jun 2014 20:17:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.68 with SMTP id a62ls2513683qge.79.gmail; Tue, 24 Jun 2014 20:17:11 -0700 (PDT) X-Received: by 10.52.119.179 with SMTP id kv19mr3600962vdb.3.1403666231783; Tue, 24 Jun 2014 20:17:11 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id pv20si1473385vdb.48.2014.06.24.20.17.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 20:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id i13so1351228veh.15 for ; Tue, 24 Jun 2014 20:17:11 -0700 (PDT) X-Received: by 10.52.255.65 with SMTP id ao1mr3589397vdd.43.1403666231589; Tue, 24 Jun 2014 20:17: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 tc5csp257675vcb; Tue, 24 Jun 2014 20:17:11 -0700 (PDT) X-Received: by 10.66.192.73 with SMTP id he9mr7469768pac.88.1403666230685; Tue, 24 Jun 2014 20:17:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wj5si3180447pbc.22.2014.06.24.20.17.10; Tue, 24 Jun 2014 20:17:10 -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 S1754195AbaFYDRD (ORCPT + 27 others); Tue, 24 Jun 2014 23:17:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32554 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754038AbaFYDRA (ORCPT ); Tue, 24 Jun 2014 23:17:00 -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 s5P3Gq6q002329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jun 2014 23:16:52 -0400 Received: from deneb.redhat.com (ovpn-113-76.phx2.redhat.com [10.3.113.76]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5P3Goex028768; Tue, 24 Jun 2014 23:16:51 -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] perf: fix arm64 build error Date: Tue, 24 Jun 2014 23:16:45 -0400 Message-Id: <1403666205-25346-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.128.170 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 PEFF_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