[PATCH 1/2] drm/amdgpu: Remove hole from struct amdgpu_ib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Group the 32- vs 64- members together to remove hole from the struct.

Before:

        /* size: 40, cachelines: 1, members: 5 */
        /* sum members: 32, holes: 1, sum holes: 4 */
        /* padding: 4 */
        /* last cacheline: 40 bytes */

After:
        /* size: 32, cachelines: 1, members: 5 */
        /* last cacheline: 32 bytes */

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index e13407cbb040..9a7ffbc53363 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
@@ -97,9 +97,9 @@ enum amdgpu_ib_pool_type {
 
 struct amdgpu_ib {
 	struct drm_suballoc		*sa_bo;
-	uint32_t			length_dw;
-	uint64_t			gpu_addr;
 	uint32_t			*ptr;
+	uint64_t			gpu_addr;
+	uint32_t			length_dw;
 	uint32_t			flags;
 };
 
-- 
2.48.0




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux