From nobody Mon May 06 21:04:01 2024 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 4VYDRP6fPGz5JKd7; Mon, 06 May 2024 21:04:01 +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 4VYDRP69czz4Hxm; Mon, 6 May 2024 21:04:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715029441; 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=qWqC5iJ5gS69Ku0NgqOD2urx1eHtsxVZ0+y9BLmFkAQ=; b=q+0xEphEq8S1l1rNy5Se2AcHVNORbH95rN7F3l7PeLPZ4Lc7jsmiJquQM8aMDgnlkBFOuh xoKN1OqUKFl2yoz5pM0tT4niCrDC8W+0xD1oY94yKnCjIABCwjLLZHCw6vu/nT2naBzARW Ip+b83VS4K5bCFNRfoqv5sEvh89TCsnVE8WEb7MjTtqW3LErusnZUx6q3z23UvgnujGi4/ sugjiwP2FihJB6zPJS1oo+rwR4G2061sChp277FcwumjSRg/z23GDn33QXGzH0zO6ptTsP 4QTW9naK5oHhtEspFzvGHphPSja/1DJUhs9pVXGVVnV50OhYSqDq6nHSHv5r4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715029441; a=rsa-sha256; cv=none; b=NurEORsXs/FXaWGviPiVlGaINREO33aEfXEo6XfrHRfQURKrPJZPEhi4FUyNdtf+9Go0Jg Q/8qN55NQsFkn7G3ttBtFgUSJyIQoWYEpQuwnyNrevqKS3F015rQmZzqTnHIGOgeEJd/0e ATO8yfZoHmw8+XA1L1iC/VNGkBzvU9qllt70YcBcfvKVsyigjC0/ojZsG/tN1A+a+OR2HC OVg/Z8HyGOfGyUf1nhMa23ZKyiwuNpTaS7wi6hK3Jgf81/tbkd/tLA/tQYgloO6ddY7/2Z KfqNseuaQ9W9xFN2qfJXhyr7Hy4LzLiywIXAWrVSJS23jdS5ChlOgQuerSlsZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715029441; 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=qWqC5iJ5gS69Ku0NgqOD2urx1eHtsxVZ0+y9BLmFkAQ=; b=ok3ywOGvJckuHWZQAMxXam/RihtBtvVpOcwFWm8SO1SAZ+BHKwOhJ4xxx/JbNubNKhcPKt CQEfqedpnN5R3s8+pFA8shTZaTk9TACVJbbasWsZyEMiAfuMdaJXt2qW3PW8qp3av13UKp 0g9cNdHivz4y6xwMIP+PM74XjuQY+whoqS3hGg8C/a5y+X77T+Qs5Y+EAHSPvlAIRoa9EH U9yaMQSDJWH9e3icH8d2YJDmpq8Z5HCFDG+tRQ75kUivjzC+hE9aoSPBUVBFqgF3XZm69p WyYL1ed8z2c0puh0VuX4q4X/M8KnmMWHt/yiqffMd3783uDRc6YsP8VbuLsTFQ== 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 4VYDRP5n7Bz1CVY; Mon, 6 May 2024 21:04:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 446L41GR016475; Mon, 6 May 2024 21:04:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 446L41Dh016472; Mon, 6 May 2024 21:04:01 GMT (envelope-from git) Date: Mon, 6 May 2024 21:04:01 GMT Message-Id: <202405062104.446L41Dh016472@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e75a79f40b9d - main - nvmf: Remove packing pragmas from nvmf_proto.h 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/main X-Git-Reftype: branch X-Git-Commit: e75a79f40b9ddab672635a9c8a824bcdb3d8a33b Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e75a79f40b9ddab672635a9c8a824bcdb3d8a33b commit e75a79f40b9ddab672635a9c8a824bcdb3d8a33b Author: John Baldwin AuthorDate: 2024-05-06 20:30:23 +0000 Commit: John Baldwin CommitDate: 2024-05-06 21:03:44 +0000 nvmf: Remove packing pragmas from nvmf_proto.h The protocol structures do not need explicit packing and static assertions verify the size of all the structures as well as the offsets of several key fields. The pragma triggers warnings when building with GCC. Sponsored by: Chelsio Communications --- sys/dev/nvmf/nvmf_proto.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/nvmf/nvmf_proto.h b/sys/dev/nvmf/nvmf_proto.h index b0be236f77fa..66e68ff384b0 100644 --- a/sys/dev/nvmf/nvmf_proto.h +++ b/sys/dev/nvmf/nvmf_proto.h @@ -22,8 +22,6 @@ * NVMe over Fabrics specification definitions */ -#pragma pack(push, 1) - #define NVME_NQN_FIELD_SIZE 256 struct nvmf_capsule_cmd { @@ -764,6 +762,4 @@ _Static_assert(offsetof(struct nvme_tcp_r2t_hdr, ttag) == 10, "Incorrect offset" _Static_assert(offsetof(struct nvme_tcp_r2t_hdr, r2to) == 12, "Incorrect offset"); _Static_assert(offsetof(struct nvme_tcp_r2t_hdr, r2tl) == 16, "Incorrect offset"); -#pragma pack(pop) - #endif /* __NVMF_PROTO_H__ */