drm/amd/display: code clean up in dce80_hw_sequencer.c
Subsystems (3)
PATCH 1/1 drm/amd/display: code clean up in dce80_hw_sequencer.c
Fix the following gcc warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_hw_sequencer.c:43:46:
warning: ‘reg_offsets’ defined but not used [-Wunused-const-variable=]
static const struct dce80_hw_seq_reg_offsets reg_offsets[] = {
^~~~~~~~~~~Reported-by Hulk Robot <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- .../amd/display/dc/dce80/dce80_hw_sequencer.c | 28 ------------------- 1 file changed, 28 deletions(-)
drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c +0 -28
@@ -36,34 +36,6 @@#include "dce/dce_8_0_d.h" #include "dce/dce_8_0_sh_mask.h" -struct dce80_hw_seq_reg_offsets { -uint32_t crtc; -}; - -static const struct dce80_hw_seq_reg_offsets reg_offsets[] = { -{ - .crtc = (mmCRTC0_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC1_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC2_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC3_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC4_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC5_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -} -}; - -#define HW_REG_CRTC (reg, id)\ - (reg + reg_offsets[id].crtc) -/******************************************************************************* * Private definitions ******************************************************************************/
Signature · 1 line
2.21.1
Alex Deucher
AppliedQuoted 10 lines · Jason Yan
Fix the following gcc warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_hw_sequencer.c:43:46:
warning: ‘reg_offsets’ defined but not used [-Wunused-const-variable=]static const struct dce80_hw_seq_reg_offsets reg_offsets[] = { ^~~~~~~~~~~Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>
Applied. Thanks!
Alex
Quoted 46 lines
--- .../amd/display/dc/dce80/dce80_hw_sequencer.c | 28 ------------------- 1 file changed, 28 deletions(-)drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c +0
-29@@ -36,34 +36,6 @@#include "dce/dce_8_0_d.h" #include "dce/dce_8_0_sh_mask.h" -struct dce80_hw_seq_reg_offsets { -uint32_t crtc; -}; - -static const struct dce80_hw_seq_reg_offsets reg_offsets[] = { -{ - .crtc = (mmCRTC0_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC1_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC2_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC3_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC4_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -}, -{ - .crtc = (mmCRTC5_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL), -} -}; - -#define HW_REG_CRTC (reg, id)\ - (reg + reg_offsets[id].crtc) -/******************************************************************************* * Private definitions ******************************************************************************/ --2.21.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel