git: e75a79f40b9d - main - nvmf: Remove packing pragmas from nvmf_proto.h

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 06 May 2024 21:04:01 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e75a79f40b9ddab672635a9c8a824bcdb3d8a33b

commit e75a79f40b9ddab672635a9c8a824bcdb3d8a33b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-05-06 20:30:23 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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__ */