Skip to contentSkip to conversation

dmr/amdgpu: Fix compile error with CONFIG_DRM_AMDGPU_GART_DEBUGFS

PATCH In review Andrey Grodzovsky 2 participants 2 messages Aug 14, 2019 – Aug 15, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmr/amdgpu: Fix compile error with CONFIG_DRM_AMDGPU_GART_DEBUGFS

Double defintion of 'i'

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +1 -1
index a67ffff..f204dbd 100644
@@ -309,7 +309,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
 		     uint64_t flags)
 {
 #ifdef CONFIG_DRM_AMDGPU_GART_DEBUGFS
-	unsigned i,t,p;
+	unsigned t,p;
 #endif
 	int r, i;
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1565812118-25941-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 14.08.19 um 21:48 schrieb Andrey Grodzovsky:

Quoted 3 lines

Double defintion of 'i'

I think in the long term we could as well remove CONFIG_DRM_AMDGPU_GART_DEBUGFS and drop the extra debug functionality.

Christian.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +0 -0
index a67ffff..f204dbd 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset, · line 315

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +1 -1
@@ -309,7 +309,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
  		     uint64_t flags)
  {
  #ifdef CONFIG_DRM_AMDGPU_GART_DEBUGFS
-	unsigned i,t,p;
+	unsigned t,p;
  #endif
  	int r, i;
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx