summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenxuebing <chenxb_99091@126.com>2024-01-11 05:25:56 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-01-16 02:35:40 +0300
commitf5e1f90b67b88fc6d0b4c9195442f28f806146a9 (patch)
tree3d00d6990815a4a0e406558cbf9326b1d4e87336
parent0b0fb6da9b01a1bafe9a62b989408f29447f95f8 (diff)
downloadlinux-f5e1f90b67b88fc6d0b4c9195442f28f806146a9.tar.xz
drm/amdgpu: Clean up errors in amdgpu_gmc.c
Fix the following errors reported by checkpatch: ERROR: need consistent spacing around '-' (ctx:WxV) Signed-off-by: chenxuebing <chenxb_99091@126.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index 103f8a8df6d8..d4a848c51a83 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@ -52,7 +52,7 @@ int amdgpu_gmc_pdb0_alloc(struct amdgpu_device *adev)
struct amdgpu_bo_param bp;
u64 vram_size = adev->gmc.xgmi.node_segment_size * adev->gmc.xgmi.num_physical_nodes;
uint32_t pde0_page_shift = adev->gmc.vmid0_page_table_block_size + 21;
- uint32_t npdes = (vram_size + (1ULL << pde0_page_shift) -1) >> pde0_page_shift;
+ uint32_t npdes = (vram_size + (1ULL << pde0_page_shift) - 1) >> pde0_page_shift;
memset(&bp, 0, sizeof(bp));
bp.size = PAGE_ALIGN((npdes + 1) * 8);