[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XEN v1 6/9] xen/arm: Use 'u64' to represent 'unsigned long long'


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Date: Thu, 15 Dec 2022 19:32:42 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0qkW8svLr8Mc6M3M8zGUIB1kFr46uVAUu0xQ2OTvK9k=; b=BAg95cLIQ9esNbRE1aG3NPfzeI4g73hP6A1yyjAYq3QgoJrYJHQjb4BuOL1IMNlOUdmnvkCSbb28VCUYtBjryfoNFRknvvXVwulgw3FnbBzSSg/5RXhT15kEr5TqqMuyW8zoDxQjTYMhaO7J2hsCQzg3ZhjJGSVzUBW0rrQnw1lAPUes+vRnt6VdpX4LdO0PvgwPWi2uLg49vuCqXGmyNYYAcWQe+c1y9WnwysOt8UWVxUod8gw4w58fghVIJk4iKnM7koYWRQkQfTeMJObSV2Fq5ZEa7qbJpTX8d2AV2cy5fS4SCrOH4zC8i5YwMuQKgEMrHeOIMl0mDTQ2AMFyzQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2CbNcTkHHroQ412Y+DjHJ6ZfeiaVQOwgLAwOX4xgS8Dmfmu8/Q1M21nbRu/s6iDO4b96LFspdflhc5esq0G4Nl1XMZqb2lrH1G9chlxf0bVM7gO/7CUJAl5Rb7HvopnK5b4jVCboKv7vWSpRhac+D24FAtc5Tyjr/AqESll6zDtJQJDftPYDHpTon0Sw5ouC77y/SjVTVGRE2KWTuoN9sfxxsbFyAy9YPIJsFkLle20qEayJp63dsaClaDODI67zJpmLx/bKoJlkNDhn0sXU2nMPjkhERoY0+9RxGDFoOPWYpsa4xhUBUhetFb3bTM8UoPxw1II+EOctub6WaySrQ==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Thu, 15 Dec 2022 19:33:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

bankbase, banksize and bankend are used to hold values of type
'unsigned long long'. Thus, one should use 'u64' instead of 'paddr_t'
(which may be either u64 or u32 depending on the architecture).

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
 xen/arch/arm/domain_build.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index c537514a52..e968b9812d 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1741,9 +1741,9 @@ static int __init find_domU_holes(const struct 
kernel_info *kinfo,
                                   struct meminfo *ext_regions)
 {
     unsigned int i;
-    paddr_t bankend;
-    const paddr_t bankbase[] = GUEST_RAM_BANK_BASES;
-    const paddr_t banksize[] = GUEST_RAM_BANK_SIZES;
+    uint64_t bankend;
+    const uint64_t bankbase[] = GUEST_RAM_BANK_BASES;
+    const uint64_t banksize[] = GUEST_RAM_BANK_SIZES;
     int res = -ENOENT;
 
     for ( i = 0; i < GUEST_RAM_BANKS; i++ )
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.