Skip to content

Commit 37e4f05

Browse files
JasonYanHwalexdeucher
authored andcommitted
drm/amd/amdgpu: remove defined but not used 'crtc_offsets'
Fix the following gcc warning: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:65:18: warning: ‘crtc_offsets’ defined but not used [-Wunused-const-variable=] static const u32 crtc_offsets[6] = ^~~~~~~~~~~~ Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3528cae commit 37e4f05

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,6 @@ MODULE_FIRMWARE("amdgpu/si58_mc.bin");
6161
#define MC_SEQ_MISC0__MT__HBM 0x60000000
6262
#define MC_SEQ_MISC0__MT__DDR3 0xB0000000
6363

64-
65-
static const u32 crtc_offsets[6] =
66-
{
67-
SI_CRTC0_REGISTER_OFFSET,
68-
SI_CRTC1_REGISTER_OFFSET,
69-
SI_CRTC2_REGISTER_OFFSET,
70-
SI_CRTC3_REGISTER_OFFSET,
71-
SI_CRTC4_REGISTER_OFFSET,
72-
SI_CRTC5_REGISTER_OFFSET
73-
};
74-
7564
static void gmc_v6_0_mc_stop(struct amdgpu_device *adev)
7665
{
7766
u32 blackout;

0 commit comments

Comments
 (0)