From patchwork Mon Mar 17 14:05:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 26373 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA018202FA for ; Mon, 17 Mar 2014 14:08:08 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf12207759qae.7 for ; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=tktUgpoWSgaaNBdhrWRzyTJXOse3Itrj0tBd8bMWYzI=; b=mHlsZwVCkbfUqKktB5BVIjQn4r5NNX0C5kz3aftatXjFf1IaxdQS+2s4YShq7sEBXR kmFdcgLuoSdYkTax19CSgQjkNM9a3Cyr1eOWjc/rS9kdBusoROR6nDTAGMsepWYUav4H 7+AZlYViJ95EXLhDuYG12xetm6f95Cb+9vMypRAOpK9JGtmbeDj9MN/Sot/+R5YddLT1 5kzHND/8QhBY+E8evTSrWITAInztkuWqEAgIuc8ME/HondKavJ0vxZGlD5FtR1OE4R5J OzFO2ADnu2xqNP/gVGZM/2AVBQeN5niO6Of20GEqdIjeuh1OsjaZj4cXcXNK6y3TW/XL sz8g== X-Gm-Message-State: ALoCoQlUYpO9PsbIjATaWbDXpjvhUipN2dVYKfRkNyBB5wFa5a2HSPrvMjjAlQ5esLSEVPv/EocY X-Received: by 10.58.112.97 with SMTP id ip1mr9596918veb.32.1395065288524; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.43.119 with SMTP id d110ls1687785qga.32.gmail; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr507788vcb.32.1395065288343; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id f9si5275635vck.112.2014.03.17.07.08.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 07:08:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so5638714veb.6 for ; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) X-Received: by 10.52.251.199 with SMTP id zm7mr17160073vdc.21.1395065288282; Mon, 17 Mar 2014 07:08:08 -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.220.78.9 with SMTP id i9csp130083vck; Mon, 17 Mar 2014 07:08:08 -0700 (PDT) X-Received: by 10.229.28.2 with SMTP id k2mr26056873qcc.16.1395065287862; Mon, 17 Mar 2014 07:08:07 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id t76si1464552qgd.15.2014.03.17.07.08.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Mar 2014 07:08:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPYBJ-0002Cn-Bq; Mon, 17 Mar 2014 14:06:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPYBH-0002Bs-So for xen-devel@lists.xenproject.org; Mon, 17 Mar 2014 14:06:20 +0000 Received: from [85.158.137.68:36604] by server-17.bemta-3.messagelabs.com id 0B/86-22741-A5107235; Mon, 17 Mar 2014 14:06:18 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-8.tower-31.messagelabs.com!1395065178!1106810!1 X-Originating-IP: [74.125.83.48] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5465 invoked from network); 17 Mar 2014 14:06:18 -0000 Received: from mail-ee0-f48.google.com (HELO mail-ee0-f48.google.com) (74.125.83.48) by server-8.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 17 Mar 2014 14:06:18 -0000 Received: by mail-ee0-f48.google.com with SMTP id b57so3482051eek.7 for ; Mon, 17 Mar 2014 07:06:18 -0700 (PDT) X-Received: by 10.14.2.66 with SMTP id 42mr23807688eee.24.1395065177997; Mon, 17 Mar 2014 07:06:17 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id x3sm39716538eep.17.2014.03.17.07.06.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Mar 2014 07:06:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 17 Mar 2014 14:05:53 +0000 Message-Id: <1395065165-15915-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395065165-15915-1-git-send-email-julien.grall@linaro.org> References: <1395065165-15915-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v2 03/15] xen/arm: Correctly define size_t X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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-Archive: Flask code use %zu to print size_t variable. On ARM, size_t always defined to unsigned long which make ARM build failed. Fix it by using __SIZE_TYPE__. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/include/asm-arm/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/asm-arm/types.h b/xen/include/asm-arm/types.h index 6875a62..183f3e0 100644 --- a/xen/include/asm-arm/types.h +++ b/xen/include/asm-arm/types.h @@ -55,7 +55,11 @@ typedef u64 register_t; #define PRIregister "lx" #endif +#if defined(__SIZE_TYPE__) +typedef __SIZE_TYPE__ size_t; +#else typedef unsigned long size_t; +#endif typedef char bool_t; #define test_and_set_bool(b) xchg(&(b), 1)