From nobody Wed May 11 00:30:03 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 768E41AE4B25; Wed, 11 May 2022 00:30:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KybQh1Ttmz4nvG; Wed, 11 May 2022 00:30:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652229004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2BnJdS3/HKbNW8WbJyIzCunAL6qsP8c7SRCIjdfYZVw=; b=T/7NwG/igUn0Wlq/grOGNZcxQ0gXKK8edB1D75g1xvP3qWaul9dbZ2cwSo/8X4wP3N8Qit kndf+sULGpBHQjtJDF9+4Wblflt+Vj1fbGsFPzOaZ0DvOvvuaOvOLyZ1vM8ZevtJBt3kR6 WKLOr8DPo6dy0kywzLpLl3RZ0Wm4QU72bf6OLPpPsgwFhkH79LkSvEcrmkt5YIhzLfTcf3 g+WTa8uT2UHS22qT4VjuiVitdYEK+yHGvo2x2QUC0ADg+yEuQhJxDKP/EYqrmb3LW6BQRf yBcH5BND7CF+NQSW7ZfaKr/FkcF+utWgM0FX60okZa4keXgZYil4BE2HVfV9qA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F242D7846; Wed, 11 May 2022 00:30:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24B0U3m7056464; Wed, 11 May 2022 00:30:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24B0U3wx056461; Wed, 11 May 2022 00:30:03 GMT (envelope-from git) Date: Wed, 11 May 2022 00:30:03 GMT Message-Id: <202205110030.24B0U3wx056461@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: ecd5ade6dcf7 - stable/13 - fstyp: Remove __packed from struct exfat_de_label. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ecd5ade6dcf718cc0622edd42228a952e8154b4f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652229004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2BnJdS3/HKbNW8WbJyIzCunAL6qsP8c7SRCIjdfYZVw=; b=tIl7AGE2Kdf5aFbiMZilpeqJEtnj8pwzeiyk/7Siur+r3oQzo0bv6gNAlZkzN3+PC/kA8t WGE3771eSLS0PuneBsxKMscPjlUsq3nDf4EF1SwPGvCtC4POWfr6YF2310FrSqkXwGUgmJ 1H00VYf0anp0VdCOYkYZhPqK20CoyyJ8Z/4GndBm4qpeJEUmXgghTDSJII98FF4DvHpsA0 YINqxnz9RlMHlPuIa6KpYBFNenD4M3sGENhlxRpEdmuuKpoCxe1K+ff9i2qscksgNNE/0q tuXV5ysQS/WfYqzGBT0rvPjqyFmxkgrjpZh0fsUg01409GUNkqZ2xk6F0XX4HA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652229004; a=rsa-sha256; cv=none; b=lf7/nokSx13f5FSMKDnvf8LcteAP5BaEil+b88BP0Z7YcR/C2zRXxbfZmj7COPybRCKjli uv7izCH+TLNal+7+0tpJ6VNX2XDYCNrJSkbeZ0KAZ/Dkf5x/acF6jiFn20SRN1kuBOZaIa HtTaaIpvf1jQ3i8Zr7e2HqVsGAadovVKQhl/vx2GmQCpTJu83SgzTdeS6PpA09zCEJLkIP B70epRx0Ztv1mD3vdTCisUC9N5fZlU/D6zyyeWCk3vgSPZeuWe0D0t/Es1ygzMkbrKNsSx prjMuo/NTnMwc4Njh9l2XahHy3/XRqCfiVRbmexBJE9v4Gm202wq+txUIPW9/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ecd5ade6dcf718cc0622edd42228a952e8154b4f commit ecd5ade6dcf718cc0622edd42228a952e8154b4f Author: John Baldwin AuthorDate: 2022-02-01 01:33:31 +0000 Commit: John Baldwin CommitDate: 2022-05-11 00:04:31 +0000 fstyp: Remove __packed from struct exfat_de_label. This fixes a -Waddress-of-packed-member warning about a possibly unaligned pointer from GCC 9 when calling convert_label(). __packed has to be removed from struct exfat_dirent as well to fix an alignment warning when casting from a struct exfat_dirent pointer to a struct exfat_de_label pointer. Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D32144 (cherry picked from commit 58862c0bea66139583f830d21c2f1d98fb844bb0) --- usr.sbin/fstyp/exfat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/fstyp/exfat.c b/usr.sbin/fstyp/exfat.c index d92d9c828427..80cef5cbf822 100644 --- a/usr.sbin/fstyp/exfat.c +++ b/usr.sbin/fstyp/exfat.c @@ -111,7 +111,7 @@ struct exfat_dirent { } u; uint32_t xde_first_cluster; uint64_t xde_data_len; -} __packed; +}; #define xde_generic u.xde_generic_ #define xde_secondary_count u.xde_primary_.xde_secondary_count #define xde_set_chksum u.xde_primary_.xde_set_chksum_ @@ -124,7 +124,7 @@ struct exfat_de_label { uint8_t xdel_char_cnt; /* Length of UCS-2 label */ uint16_t xdel_vol_lbl[11]; uint8_t xdel_reserved[8]; -} __packed; +}; _Static_assert(sizeof(struct exfat_de_label) == 32, "spec"); #define MAIN_BOOT_REGION_SECT 0