From 3738de347405062255369f8f0bbddd2f0afd3275 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Fri, 13 Mar 2020 05:57:37 -0700 Subject: [PATCH] drm/amd/powerplay: Move fallthrough; into containing #ifdef/#endif The automated conversion of /* fallthrough */ comments converted a comment outside of an #ifdef/#endif case block that should be inside the block. Move the fallthrough inside the block to silence the warning. Signed-off-by: Joe Perches Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index fc5236c40311b..7740488999df7 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c @@ -3702,8 +3702,8 @@ static int smu7_request_link_speed_change_before_state_change( case PP_PCIEGen2: if (0 == amdgpu_acpi_pcie_performance_request(hwmgr->adev, PCIE_PERF_REQ_GEN2, false)) break; -#endif fallthrough; +#endif default: data->force_pcie_gen = smu7_get_current_pcie_speed(hwmgr); break; -- 2.30.2