drm/amd/pm: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 4 Jun 2021 05:06:13 +0000 (00:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:03:04 +0000 (16:03 -0400)
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: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c

index 8f71f6a..43c3f6e 100644 (file)
@@ -831,6 +831,7 @@ static int smu10_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
                break;
        case AMD_DPM_FORCED_LEVEL_MANUAL:
                data->fine_grain_enabled = 1;
+               break;
        case AMD_DPM_FORCED_LEVEL_PROFILE_EXIT:
        default:
                break;