drm/amd/powerplay: Move fallthrough; into containing #ifdef/#endif
authorJoe Perches <joe@perches.com>
Fri, 13 Mar 2020 12:57:37 +0000 (05:57 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:35 +0000 (11:52 -0400)
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 <joe@perches.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index fc5236c40311b80979807b3cef07b4cb4561a7be..7740488999df78b06326715cc24d580d35286721 100644 (file)
@@ -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;