From patchwork Thu Nov 11 11:05:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 519122 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp114933imj; Thu, 11 Nov 2021 03:11:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSg/B9FFRmC/CjskZG6OXd6XSPNKy9mt1+n4mzb4+xF9cb+n1QeKq48713Dedl1jcui0fI X-Received: by 2002:a05:6102:240b:: with SMTP id j11mr9433093vsi.54.1636629102071; Thu, 11 Nov 2021 03:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636629102; cv=none; d=google.com; s=arc-20160816; b=DjziuhdtVPRPitkRH+WW8yGrZMII37vnXw/Hz8jc3AAPjDdfZOPvCDRv7+Bs6iBVWp 8TUVs2ZD8oWVhPyYpudUeGN1epqDov0PvGGuFfSEPKqenl+occMlpFlBRwSkwxa59OBq nqxOzRWI5n6K3R/8E8/9RxL1kxLzbxdcQPDAifHkNOoSkAMKnUGo/uVr9yKQxzY2DO3P I6w7HAIw4733oEZcqgVbdyx1AKVhw+HfAcYe5wS7U3qQp9TEBzJfOWxKKpBPngYXnRHv mlYdwiUojVGcX+R1voTBTw3fXMARnOGp8JbOD49Dv4KI56Wj1xDgcJXqp3aQl8LCafqg jYHg== 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; bh=Lpb2baY8CYylug5/5CBTdDLaVS9xzhtoztEDCs00DQA=; b=GmGyQRMexP6KejY1SC5vCMcWG/gYeUrZTlFUFyrT17F2DQxVeGN1dvbJcjfHfPnFLI yaOMc+lw6RDJKPbveknn+wjW1os3QQ+D2IMqusFdXdMd4rVtT7U8kAeN/gB+e99Zqdmf hsgZSmU0Mkt2H3wk1Xir9wd4rnfPZmeeN1E3oOimgGVdgZ6ROeVbEtj/1nej2MtkxxY7 cKppu3zBQ+wjiHCYgzgZIrx4+6xpbYF0JkdBYlgotz2MFG9oEnsmU5IqN8f3DCrlmnKc B8CdqtyuJwJF8EuaCrSL7WzrFrZM09pOilVAgMzvpKIVjYn6sKg6O0MTjhUeuuc1KXOK V97Q== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c15si8188786uav.248.2021.11.11.03.11.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Nov 2021 03:11:42 -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; 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" Received: from localhost ([::1]:36262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml7zZ-00035T-Hz for patch@linaro.org; Thu, 11 Nov 2021 06:11:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7tW-0002b0-4T for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:05:26 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:54135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7tS-0001Nv-CA for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:05:24 -0500 Received: from quad ([82.142.28.210]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N6KpF-1meXGQ3BvN-016jz7; Thu, 11 Nov 2021 12:05:12 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 3/4] linux-user: Fix member types of target_dirent64 Date: Thu, 11 Nov 2021 12:05:03 +0100 Message-Id: <20211111110504.1574242-4-laurent@vivier.eu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211111110504.1574242-1-laurent@vivier.eu> References: <20211111110504.1574242-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:MHeItdKQchzjaWl/nHXVTZ1lDL5JLxmJWrN0/boKiHLiRF3IlMW 1RrQkNr36SxM80tWAd9eb7COh55v8Cxq5jvgyMrpraTTV7eScFE38jVZrc+zgTl6LXqstN0 nhkzpu6gWLTnZZGat9XQcUYYR5E2OWwsEB5nI+F6ZSphrizr19AaD9L0eXLj9HmYdIwcX3D umukmdLdzKLfDtltmmtqQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:6mvheDXUhiA=:LnCvNZlzL/Wbjzs9M8VzNa oVbttN6uZKs0rz90bMBCJg0Et9+lEInNw2ub1xN1/pz2OASxDcS5DD7cpNqxF5GJWUK/IaCH6 mH16yhNSFA2viaou+x/u1RaDfkzqzi/lsRtx0heCSu6/8lF4ib0mVZfjAs/ZRMeTRr+cMZ1pQ K/azjHFxT0g67k0VDQx1YDj/Nj4+W8P4KoQ52RACpPrrh20bAKrHFTRCZ66z5WXJv0IYJpWql RqnF4m5L4XQLIiopOnii+/ALzEYD6KkPU9N19mufoiWs7XdFW76W/abZEd0wSj24EgV2MtVbu JPy0a83vKD3tcwuA/IbbsHv0Dg0T62AWYqlDSz3wwawf87Odhny08dNsz06KFl/m8JdSJYEck rB0NGaaEyyKeBJx2aJ3n5PAWPG8ngwYPVExQ3xmli5i/xDct3NdrXScr5r12iyQnYleMLNwrZ PAvJ2OnKtVf/W9qgZjNO7KWwVQm4xNQhdQkBENdXdYPx9WFO+IZLVTg7opoTH5XgGXEYHYprl 46YEtlTyvzAgm2J69+v+JORE5izZj90ZNWHcVr5MQRL5KlqONgQztxoTqyQCAp8kT+eDcThSW Ek3+Stnj4stUIIDq4OJ8/C4CMOoL3B/vEkLYZq+ehhIKnGoGUh9aCzT/nHof6AP0+meIrTY53 NUa0LWrHv4q5GMHAlbLEIgHmRQHuJmzgKc+48RYedrEc39DMqic0Yl8UQ2UTO885OO+Q= Received-SPF: none client-ip=212.227.126.130; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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: , Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson 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é Reviewed by: Warner Losh Message-Id: <20211107124845.1174791-4-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- 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 98b09ee6d656..41aaafbac12c 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[]; };