From patchwork Wed Mar 26 19:09:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 27159 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A276320062 for ; Wed, 26 Mar 2014 19:12:36 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id gq1sf8793059obb.3 for ; Wed, 26 Mar 2014 12:12:36 -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:date:from:to:message-id:user-agent :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=QcsCBGhBvTCG8zjMdNV97/pkG3zHCaOe7Elt//Wl2D4=; b=K5yYYYftPj69jKdCKiytvM6y8zWTauua8w4gjbQkZWYQOsv9yGZ+VzstwxafZJNPR2 KCSO7Io/CEEnEE22sXrlw0IjTSlTKZgEbpE6V8VXQdeIfTS4BJeAtCgYiSNU0iF0mBVz 3TKJcFtXGh5omj3s9pOb24ebRHnO+idK3gAyYHk6AaocXQbZicXx5l/P90/+dhjIKEtS /UVvXQBPaSFu7IcIjHs6UGcqTXdi4X4sxItaxAZ9r05x8Iaz6uFdzE/KeiqwNNml7Qor sATUY5lRRDft0HuIjbJxzRWuboMHWjrCydgdqEapG+VPxP9wIYmy+V/vK8ix29FgkRvT fWvQ== X-Gm-Message-State: ALoCoQnv9VAZnlX2pgNLtDyLkNIs7Dh2cpZcFlbDMVFct2LEYZ+BzVH4KEvyEdFamvxQfYPVwb/d X-Received: by 10.182.230.168 with SMTP id sz8mr18511146obc.9.1395861156200; Wed, 26 Mar 2014 12:12:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.1 with SMTP id v1ls799204qge.50.gmail; Wed, 26 Mar 2014 12:12:36 -0700 (PDT) X-Received: by 10.58.34.67 with SMTP id x3mr164568vei.37.1395861156086; Wed, 26 Mar 2014 12:12:36 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id sj4si4860991vdc.192.2014.03.26.12.12.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 12:12:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so2846167veb.26 for ; Wed, 26 Mar 2014 12:12:36 -0700 (PDT) X-Received: by 10.58.133.15 with SMTP id oy15mr59587120veb.19.1395861155945; Wed, 26 Mar 2014 12:12:35 -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 i9csp70888vck; Wed, 26 Mar 2014 12:12:34 -0700 (PDT) X-Received: by 10.224.22.147 with SMTP id n19mr4619769qab.93.1395861154762; Wed, 26 Mar 2014 12:12:34 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id f7si11138080qge.98.2014.03.26.12.12.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 12:12:34 -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 1WStDV-0001l4-4b; Wed, 26 Mar 2014 19:10:25 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WStDU-0001kz-2w for xen-devel@lists.xensource.com; Wed, 26 Mar 2014 19:10:24 +0000 Received: from [85.158.139.211:59568] by server-16.bemta-5.messagelabs.com id C0/E8-19700-F1623335; Wed, 26 Mar 2014 19:10:23 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1395861021!3580264!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28065 invoked from network); 26 Mar 2014 19:10:22 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 26 Mar 2014 19:10:22 -0000 X-IronPort-AV: E=Sophos;i="4.97,737,1389744000"; d="scan'208";a="113884744" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 26 Mar 2014 19:10:03 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Wed, 26 Mar 2014 15:10:02 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WStD8-0004XP-Hx; Wed, 26 Mar 2014 19:10:02 +0000 Date: Wed, 26 Mar 2014 19:09:31 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 X-DLP: MIA1 Cc: Jan Beulich , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH] public/platform.h: replace unsigned long with xen_ulong_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: , 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: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 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: Replace unsigned long with xen_ulong_t in public/platform.h. Also replace unsigned int with uint32_t for clarity. It is safe because unsigned int are 4 byte sized and 4 byte aligned an all the supported architectures. Signed-off-by: Stefano Stabellini Acked-by: Ian Campbell Acked-by: Keir Fraser diff --git a/xen/include/public/platform.h b/xen/include/public/platform.h index 4341f54..053b9fa 100644 --- a/xen/include/public/platform.h +++ b/xen/include/public/platform.h @@ -134,7 +134,7 @@ struct xenpf_efi_runtime_call { * where it holds the single returned value. */ uint32_t misc; - unsigned long status; + xen_ulong_t status; union { #define XEN_EFI_GET_TIME_SET_CLEARS_NS 0x00000001 struct { @@ -168,7 +168,7 @@ struct xenpf_efi_runtime_call { #define XEN_EFI_VARIABLE_RUNTIME_ACCESS 0x00000004 struct { XEN_GUEST_HANDLE(void) name; /* UCS-2/UTF-16 string */ - unsigned long size; + xen_ulong_t size; XEN_GUEST_HANDLE(void) data; struct xenpf_efi_guid { uint32_t data1; @@ -179,7 +179,7 @@ struct xenpf_efi_runtime_call { } get_variable, set_variable; struct { - unsigned long size; + xen_ulong_t size; XEN_GUEST_HANDLE(void) name; /* UCS-2/UTF-16 string */ struct xenpf_efi_guid vendor_guid; } get_next_variable_name; @@ -194,14 +194,14 @@ struct xenpf_efi_runtime_call { struct { XEN_GUEST_HANDLE(void) capsule_header_array; - unsigned long capsule_count; + xen_ulong_t capsule_count; uint64_t max_capsule_size; - unsigned int reset_type; + uint32_t reset_type; } query_capsule_capabilities; struct { XEN_GUEST_HANDLE(void) capsule_header_array; - unsigned long capsule_count; + xen_ulong_t capsule_count; uint64_t sg_list; /* machine address */ } update_capsule; } u;