From patchwork Sun Jul 9 18:28:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 700931 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp4830900wrs; Sun, 9 Jul 2023 11:45:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtC6ymtP2XUKMmgzrMVD25/Tbxd4jyClUt7zycFYQ7Omf10T9EhJLBsxUdDW1osaX1Mgz1 X-Received: by 2002:a05:620a:4548:b0:765:4330:6e66 with SMTP id u8-20020a05620a454800b0076543306e66mr11934000qkp.36.1688928339497; Sun, 09 Jul 2023 11:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688928339; cv=none; d=google.com; s=arc-20160816; b=aqRHJ2yU/K9Sib+42Mgtlc1HqS9gp65awFYHsJUybvppQrwypWXOs/8Ct/RvqiJogo T+vONoVQIkt/39f9STKC1XMccnbR/3C2Z91JOwwMJYTzkQ3oNH6qySQL3zPHQ0KCx7tV uAMN3ZmIVV7j9T9MEorCTrz94KOav6K3U9/grf5fTC4YiXymUuS1Yxzdswnrs2o1LoMt nK8z4HtU+x/bheIsAXNEQNdzlu6Azrua+s8PJeasBfGkE3brK4gpG5q4kAVMikxcdKX+ Slo1FApJ97TV8/LmwDDefp4cKByLiAw1uw5j10Ax3gRy1+0QSX0feDdW54lWzF4y81Wl GX6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Bny+QrSk9kOHXY9n7JH/neknIRvMmyCuxL4ghWqdlbg=; fh=3IEiF/YPZ00TE94rna3Orj/L+TRFhpuNf7ElRJz3ubE=; b=G1au8A/BiS9nE+k6RL0Qwts7/zGC4AFkanBQMjxsgr794fte9vtDf5A29vut+cNhqP Qoxmplcaoqiv/xVp7YYRuxPdV0FF2qperJsB7kSq/0xeJB05cO7F1z1ELLafrPFcFYjC zW3jMtO66GGsq4934FHDtaD7PJUzjIYzQ1v+Gzw96/UEMfNHU7NXG8HGNISuzA0bsVkb VC1p+XEwc9hpVIDs1t6NIA/6rFArtH8iciJpezmCGuaq0y7alTAqxi6YCziU++DIohh2 LBC6eUV4e65z5yLHkl/vtFAdf7HQIW7bXjRItLjIb1mMVRKxQrKGtM1xlLqhOiQmrmsx qGzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qxSjdrwC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n2-20020ae9c302000000b007671b1e36f0si4885261qkg.702.2023.07.09.11.45.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jul 2023 11:45:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qxSjdrwC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIZAR-0008H5-5F; Sun, 09 Jul 2023 14:29:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIZAP-0008G2-Dy for qemu-devel@nongnu.org; Sun, 09 Jul 2023 14:29:53 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIZAN-0000Gj-LN for qemu-devel@nongnu.org; Sun, 09 Jul 2023 14:29:53 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbf7fbe722so43505445e9.3 for ; Sun, 09 Jul 2023 11:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688927390; x=1691519390; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bny+QrSk9kOHXY9n7JH/neknIRvMmyCuxL4ghWqdlbg=; b=qxSjdrwC5/G+wEy90Vp9NXusAs7GBg4+7qoI850nT3+Kx/2b5Hb7HsFe/f6TJO/CA+ zVMc4bKBvYWK+e907D9H9NDEu+R7gZs3D5KMQELmgMwyIC8Z0rMW4ksnj7tj1WkCVsTw 0aNG72nriNhH6irds/WsjnoNFEqo+av/duxaGUvh1iWOAk3cm3AjqcKbHFj5NynOqkp+ 8DhY0HdTO7M3hE4/rLdKBt8V1bNdfjx/DduBkX10ZFAu31y6xqMEGej1GzTwTj203Dig 7o9sm3AGXDHFBb+DT7YlLPhZWdsPVocH9W44uPYNxWGoB6/IITPioO+Y6VTf5XgQ8QWQ onLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688927390; x=1691519390; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bny+QrSk9kOHXY9n7JH/neknIRvMmyCuxL4ghWqdlbg=; b=AlSJWqSwPM7OixssIat8hxfilZckL76ToZQj9XQgXUr9z0k6S9eZrLUe7wS4jy0Q9u wFWZL0Z+xNPkj5BTyHGsv70hFxbM3uWLIynv4yJn6aLaLDTj69XoWgNoWRXnPi7x4EGQ oHiZ74wyVhkEar5s9hQfbHKMM9+/IDaxuiq67Cn/Ni1NcCXtOpNcgesJ3zLOLJ1u1MDI tXszNvb/ijsKPjxUqTsFeYwXfIJbJWzfsVmh4CUL6aYDVyhfVUwefvlL+h6mMsSwNekM pJjRdHj/629ZTrNQGAHWFAHwgh2wzoF2PR7H3hwSYhQTW5FLWgtev1XsGJmT2bppva4V iYXQ== X-Gm-Message-State: ABy/qLY2c8p2QbGUVgxoJY2Se8o32WmyvA5GMw24fS55JK8N1irWfqKD 5cRggFrUhTOK4Ju9j7koPFRGDNZNbobmTbF9yGngeA== X-Received: by 2002:a1c:7404:0:b0:3fb:424b:ef6e with SMTP id p4-20020a1c7404000000b003fb424bef6emr11928434wmc.23.1688927390379; Sun, 09 Jul 2023 11:29:50 -0700 (PDT) Received: from stoup.. ([148.252.133.210]) by smtp.gmail.com with ESMTPSA id q15-20020a7bce8f000000b003fbe791a0e8sm8317108wmj.0.2023.07.09.11.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jul 2023 11:29:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 08/45] linux-user: Use abi_ullong not unsigned long long in syscall_defs.h Date: Sun, 9 Jul 2023 19:28:28 +0100 Message-Id: <20230709182934.309468-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230709182934.309468-1-richard.henderson@linaro.org> References: <20230709182934.309468-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/syscall_defs.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 20986bd1d3..45ebacd4b4 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1385,13 +1385,13 @@ struct target_stat64 { abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; - unsigned long long st_ino; + abi_ullong st_ino; } QEMU_PACKED; #ifdef TARGET_ARM #define TARGET_HAS_STRUCT_STAT64 struct target_eabi_stat64 { - unsigned long long st_dev; + abi_ullong st_dev; abi_uint __pad1; abi_ulong __st_ino; abi_uint st_mode; @@ -1400,13 +1400,13 @@ struct target_eabi_stat64 { abi_ulong st_uid; abi_ulong st_gid; - unsigned long long st_rdev; + abi_ullong st_rdev; abi_uint __pad2[2]; long long st_size; abi_ulong st_blksize; abi_uint __pad3; - unsigned long long st_blocks; + abi_ullong st_blocks; abi_ulong target_st_atime; abi_ulong target_st_atime_nsec; @@ -1417,7 +1417,7 @@ struct target_eabi_stat64 { abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; - unsigned long long st_ino; + abi_ullong st_ino; } QEMU_PACKED; #endif @@ -1568,14 +1568,14 @@ struct target_stat { #if !defined(TARGET_PPC64) #define TARGET_HAS_STRUCT_STAT64 struct QEMU_PACKED target_stat64 { - unsigned long long st_dev; - unsigned long long st_ino; + abi_ullong st_dev; + abi_ullong st_ino; abi_uint st_mode; abi_uint st_nlink; abi_uint st_uid; abi_uint st_gid; - unsigned long long st_rdev; - unsigned long long __pad0; + abi_ullong st_rdev; + abi_ullong __pad0; long long st_size; int st_blksize; abi_uint __pad1; @@ -1674,7 +1674,7 @@ struct target_stat { */ #define TARGET_HAS_STRUCT_STAT64 struct target_stat64 { - unsigned long long st_dev; + abi_ullong st_dev; unsigned char __pad1[2]; #define TARGET_STAT64_HAS_BROKEN_ST_INO 1 @@ -1686,7 +1686,7 @@ struct target_stat64 { abi_ulong st_uid; abi_ulong st_gid; - unsigned long long st_rdev; + abi_ullong st_rdev; unsigned char __pad3[2]; long long st_size; @@ -1704,7 +1704,7 @@ struct target_stat64 { abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; - unsigned long long st_ino; + abi_ullong st_ino; } QEMU_PACKED; #elif defined(TARGET_ABI_MIPSN64) @@ -1918,7 +1918,7 @@ struct target_stat { */ #define TARGET_HAS_STRUCT_STAT64 struct QEMU_PACKED target_stat64 { - unsigned long long st_dev; + abi_ullong st_dev; unsigned char __pad0[4]; #define TARGET_STAT64_HAS_BROKEN_ST_INO 1 @@ -1930,13 +1930,13 @@ struct QEMU_PACKED target_stat64 { abi_ulong st_uid; abi_ulong st_gid; - unsigned long long st_rdev; + abi_ullong st_rdev; unsigned char __pad3[4]; long long st_size; abi_ulong st_blksize; - unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ + abi_ullong st_blocks; /* Number 512-byte blocks allocated. */ abi_ulong target_st_atime; abi_ulong target_st_atime_nsec; @@ -1947,7 +1947,7 @@ struct QEMU_PACKED target_stat64 { abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; - unsigned long long st_ino; + abi_ullong st_ino; }; #elif defined(TARGET_I386) && !defined(TARGET_ABI32)