Skip to content

Commit 924f41e

Browse files
GustavoARSilvaalexdeucher
authored andcommitted
drm/amd/pm: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c247c02 commit 924f41e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ static int smu10_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
810810
break;
811811
case AMD_DPM_FORCED_LEVEL_MANUAL:
812812
data->fine_grain_enabled = 1;
813+
break;
813814
case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT:
814815
default:
815816
break;

0 commit comments

Comments
 (0)