Skip to contentSkip to conversation

drm/amdgpu: Fix Wunused-label warning

PATCH New YueHaibing 1 participant 1 message May 26, 2021

Subsystems (2)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix Wunused-label warning

If CONFIG_64BIT is n, build warns:

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:333:1:
warning: label ‘exit’ defined but not used [-Wunused-label]

Fixes f89f8c6bafd0 ("drm/amdgpu: Guard against write accesses after device removal")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
index 4a040f89ca5a..841774f4aedc 100644
@@ -330,7 +330,9 @@ void amdgpu_device_vram_access(struct amdgpu_device *adev, loff_t pos,
 	}
 	spin_unlock_irqrestore(&adev->mmio_idx_lock, flags);
 
+#ifdef CONFIG_64BIT
 exit:
+#endif
 	drm_dev_exit(idx);
 }
 
Signature · 1 line
2.17.1