From 399bfee8b63268354d6f20e1ef245b66ebbe2c6d Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 7 Oct 2024 05:17:14 +0000 Subject: [PATCH] drm/amd/amdgpu: Properly tune the size of struct From WangYuli 8e7760ed234f55f28dfd68254d08c9d0527dd766 in linux-6.6.y/6.6.54 0cee47cde41e22712c034ae961076067d4ac13a0 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h b/sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h index 104a5ad8397..19868754540 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h +++ b/sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h @@ -209,7 +209,7 @@ struct amd_sriov_msg_pf2vf_info { uint32_t pcie_atomic_ops_support_flags; /* reserved */ uint32_t reserved[256 - AMD_SRIOV_MSG_PF2VF_INFO_FILLED_SIZE]; -}; +} __packed; struct amd_sriov_msg_vf2pf_info_header { /* the total structure size in byte */ @@ -267,7 +267,7 @@ struct amd_sriov_msg_vf2pf_info { /* reserved */ uint32_t reserved[256 - AMD_SRIOV_MSG_VF2PF_INFO_FILLED_SIZE]; -}; +} __packed; /* mailbox message send from guest to host */ enum amd_sriov_mailbox_request_message { -- 2.20.1