dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] drm/amdgpu: Fix Wunused-label warning
@ 2021-05-26 12:08 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2021-05-26 12:08 UTC (permalink / raw)
  To: alexander.deucher, christian.koenig, Xinhui.Pan, airlied, daniel,
	andrey.grodzovsky
  Cc: YueHaibing, dri-devel, amd-gfx, linux-kernel

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")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4a040f89ca5a..841774f4aedc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -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);
 }
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-26 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 12:08 [PATCH -next] drm/amdgpu: Fix Wunused-label warning YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).