drm/amd/powerplay: remove defined but not used variables
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: remove defined but not used variables
Fix the following gcc warning:
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_powertune.c:710:46:
warning: ‘PSMGCEDCThresholdConfig_vega10’ defined but not used [-Wunused-const-variable=]
static const struct vega10_didt_config_reg
PSMGCEDCThresholdConfig_vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_powertune.c:654:46:
warning: ‘PSMSEEDCThresholdConfig_Vega10’ defined but not used [-Wunused-const-variable=]
static const struct vega10_didt_config_reg
PSMSEEDCThresholdConfig_Vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- .../amd/powerplay/hwmgr/vega10_powertune.c | 23 ------------------- 1 file changed, 23 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c +0 -23
@@ -651,18 +651,6 @@ static const struct vega10_didt_config_reg PSMSEEDCStallDelayConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMSEEDCThresholdConfig_Vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -* Offset Mask Shift Value -* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -*/ -/* SQ EDC THRESHOLD */ - { ixDIDT_SQ_EDC_THRESHOLD,DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD_MASK ,DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT ,0x0000 }, - - {0xFFFFFFFF }/* End of list */ -}; -static const struct vega10_didt_config_reg PSMSEEDCCtrlResetConfig_Vega10[] = {/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -707,17 +695,6 @@ static const struct vega10_didt_config_reg PSMSEEDCCtrlConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMGCEDCThresholdConfig_vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -* Offset Mask Shift Value -* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -*/ - { mmGC_EDC_THRESHOLD,GC_EDC_THRESHOLD__EDC_THRESHOLD_MASK ,GC_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT ,0x0000000 }, - - {0xFFFFFFFF }/* End of list */ -}; -static const struct vega10_didt_config_reg PSMGCEDCDroopCtrlConfig_vega10[] = {/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Signature · 1 line
2.21.1
Alex Deucher
AppliedQuoted 16 lines · Jason Yan
Fix the following gcc warning:
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_powertune.c:710:46:
warning: ‘PSMGCEDCThresholdConfig_vega10’ defined but not used [-Wunused-const-variable=]
static const structvega10_didt_config_reg
PSMGCEDCThresholdConfig_vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_powertune.c:654:46:
warning: ‘PSMSEEDCThresholdConfig_Vega10’ defined but not used [-Wunused-const-variable=]
static const structvega10_didt_config_reg
PSMSEEDCThresholdConfig_Vega10[] = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 2 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>
Applied. Thanks!
Alex
Quoted 48 lines
--- .../amd/powerplay/hwmgr/vega10_powertune.c | 23 ------------------- 1 file changed, 23 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c +0
-24@@ -651,18 +651,6 @@ static const struct vega10_didt_config_reg PSMSEEDCStallDelayConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMSEEDCThresholdConfig_Vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -* Offset Mask Shift Value -* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -*/ -/* SQ EDC THRESHOLD */ - { ixDIDT_SQ_EDC_THRESHOLD,DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD_MASK ,DIDT_SQ_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT ,0x0000 }, - - {0xFFFFFFFF }/* End of list */ -}; -static const struct vega10_didt_config_reg PSMSEEDCCtrlResetConfig_Vega10[] = {/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -707,17 +695,6 @@ static const struct vega10_didt_config_reg PSMSEEDCCtrlConfig_Vega10[] = { 0xFFFFFFFF } /* End of list */ }; -static const struct vega10_didt_config_reg PSMGCEDCThresholdConfig_vega10[] = -{ -/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -* Offset Mask Shift Value -* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -*/ - { mmGC_EDC_THRESHOLD,GC_EDC_THRESHOLD__EDC_THRESHOLD_MASK ,GC_EDC_THRESHOLD__EDC_THRESHOLD__SHIFT ,0x0000000 }, - - {0xFFFFFFFF }/* End of list */ -}; -static const struct vega10_didt_config_reg PSMGCEDCDroopCtrlConfig_vega10[] = {/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- 2.21.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx