From patchwork Sun Nov 14 10:35:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519131 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp4153954imj; Sun, 14 Nov 2021 02:36:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxFNeAU60K6oL7qp3YRXxHfw0d76/mcNbcpvxE8dkR5zz53ooSMASOjkTKUXNk6AiUahn2 X-Received: by 2002:a1f:a857:: with SMTP id r84mr45068916vke.0.1636886215313; Sun, 14 Nov 2021 02:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636886215; cv=none; d=google.com; s=arc-20160816; b=aNWBFK7Nj7M4mLgfklRFQNPaVXXqwcmNQCXp33lom//v9BrUbjyXw487e5EiMCXQrf tB+imOHJ5iUiesX830DLV3BgAJBpomCtl/F+XAhWgWrRgB9sE0cq7vaBhK4ERjdL7Ahe cZlf8wmo6crKOxKsPcpm0DaP2ijmTcAePaYdY8V7xZSMiFSRo/nfeLDawBY99wntaie6 +b7i212z6trNVNo6T2CSl/f7LAjVG5xTv/vP2wOutEiWjHaBZBeNAK23W0yb6Bt6AU4Y +b9NgEBE36pDzLkJONnTBuSLUcqVLJdwVEqvJWHCmfwq58G4JxYEpFZQcUgcpv9Yulw4 YqTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=eGSHLpNAu9g6Np9tb4uVWnbjp2oiYs6nIhg97qpdgNI=; b=U5BIENBCxfBxJTd9/nMbvuxcFAR2azxbWukqh2oJ50yAkTAsF1wH7KDPoL/CS5GQ0Q nAM3D1fdDRoQ5mG6Efj61JRSqu5yUOgHp0g9UubMIM59oGW1fpk31BvhhPwQ/qGDOwQV dIe6b9D5gDk+2otcj4zoUbXEI4t+VSKTfv9sdRygsA9bFIeuCZsrHejN0zylYle19Hy5 u+3CuhXkqZdBUCkLum5aJ10ZKR/8iVISnhH8lKt23T/BsMx4Uhk+hbpttoERrk1GzGcX KtGBmjWu4tAKp/ruHzWkfVoVZkRhCZw3WdEuvGmIntLZxbassa9hj+sUhvEBPQMW4bhc QRjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c5cx+mdk; 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 n18si17846848ual.10.2021.11.14.02.36.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Nov 2021 02:36:55 -0800 (PST) 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=c5cx+mdk; 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]:50162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmCsY-00048W-Qh for patch@linaro.org; Sun, 14 Nov 2021 05:36:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmCrg-00045C-3u for qemu-devel@nongnu.org; Sun, 14 Nov 2021 05:36:00 -0500 Received: from [2a00:1450:4864:20::331] (port=36453 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmCre-0000hN-Dz for qemu-devel@nongnu.org; Sun, 14 Nov 2021 05:35:59 -0500 Received: by mail-wm1-x331.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso13343348wml.1 for ; Sun, 14 Nov 2021 02:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eGSHLpNAu9g6Np9tb4uVWnbjp2oiYs6nIhg97qpdgNI=; b=c5cx+mdkgENL6oiRjLGjcOir6Dn3CM6yGVBHa3Hm+muVdmQiwKQjnLw/GcMY0jFlwJ B0ZBAfg9l6lr5CpYZpKguULVYASkxiLw67gAU80TDugStnIBWDhVFcjnpmYhXirsVIZQ D0x3XHBWsydI18nJC6G0N0nu5fpCWYl+86oN3Hl21XRv4xzrE59TBwJzSbp2olzPogte x4Yvi8ssMtL3jEzkh2WE4yfwSF97hDdylUVzKu0t5mF7b04lb78HS7Uzr/kh1/piTEvO Kgsti14/NpQ5P9rbCd/L+tRVaF6DtPVKh0SZi5OW5nVNSHZzqMAm7Fo+CMeCSHsdgdL2 N5OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eGSHLpNAu9g6Np9tb4uVWnbjp2oiYs6nIhg97qpdgNI=; b=anTXaxd7ns7TC1WyDIay15Of1QTKyW7zwRVuJQj0woAct/vLAlslfjjkT/I743CZqG 83ZgAxHeWmheL6nIe5l+6rCTIk6hnJxcZSr3pLUAhioBFqYQ5YYsfzdEV6JAg7fd7AhW IiZ7xXaUW5DayzmBWkg021bewD7INujbWc7BuF8YJQibfVGqzrGCOt8d8/AzhlhZnx7x urPoqkLqZZk7s8Cka0zPG1CH/sqZCNajbghEGQodZ1PGRbJnGFuC5HNqJ7dF2YFxAyyM tcmg9iIGd76Cy0t6q6YP93nT0ch6SOGTu+p6Wve9NKyu9XAKWJ1HHq7WEQUWuzA/0MAA o20g== X-Gm-Message-State: AOAM533l645APMu4oM8FEIqFUXu+WZzy+7ukl/iI97E+QE08Muf7X+lq cxsUb9ZqMnBimbKQKysuxhBsveFgGuLQbhOzTYw= X-Received: by 2002:a7b:ce8c:: with SMTP id q12mr32997166wmj.91.1636886156605; Sun, 14 Nov 2021 02:35:56 -0800 (PST) Received: from localhost.localdomain (60.red-95-126-179.staticip.rima-tde.net. [95.126.179.60]) by smtp.gmail.com with ESMTPSA id x1sm10638852wmc.22.2021.11.14.02.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 02:35:56 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 3/4] linux-user: Fix member types of target_dirent64 Date: Sun, 14 Nov 2021 11:35:38 +0100 Message-Id: <20211114103539.298686-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211114103539.298686-1-richard.henderson@linaro.org> References: <20211114103539.298686-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The host uint64_t (etc) does not have the correct alignment constraint as the guest: use abi_* types. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- linux-user/syscall_defs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 98b09ee6d6..41aaafbac1 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -437,9 +437,9 @@ struct target_dirent { }; struct target_dirent64 { - uint64_t d_ino; - int64_t d_off; - unsigned short d_reclen; + abi_ullong d_ino; + abi_llong d_off; + abi_ushort d_reclen; unsigned char d_type; char d_name[]; };