drm/amd/amdgpu: Properly tune the size of struct
authorjsg <jsg@openbsd.org>
Mon, 7 Oct 2024 05:17:14 +0000 (05:17 +0000)
committerjsg <jsg@openbsd.org>
Mon, 7 Oct 2024 05:17:14 +0000 (05:17 +0000)
From WangYuli
8e7760ed234f55f28dfd68254d08c9d0527dd766 in linux-6.6.y/6.6.54
0cee47cde41e22712c034ae961076067d4ac13a0 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgv_sriovmsg.h

index 104a5ad..1986875 100644 (file)
@@ -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 {