211-fix-compilation-warning-missing-fallthrough.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- a/src/device/drv_dsl_cpe_device_vrx.c
  2. +++ b/src/device/drv_dsl_cpe_device_vrx.c
  3. @@ -8885,6 +8885,9 @@ DSL_Error_t DSL_DRV_DEV_AutobootHandleTr
  4. (pContext, SYS_DBG_MSG"DSL[%02d]: ORDERLY_SHUTDOWN state reached"
  5. DSL_DRV_CRLF, DSL_DEV_NUM(pContext)));
  6. /* do not use break here, continue handling */
  7. +
  8. + fallthrough;
  9. +
  10. #endif /* INCLUDE_DSL_CPE_API_VRX */
  11. case DSL_LINESTATE_EXCEPTION:
  12. if (!bPreFail)
  13. --- a/src/pm/drv_dsl_cpe_pm_core.c
  14. +++ b/src/pm/drv_dsl_cpe_pm_core.c
  15. @@ -2355,15 +2355,19 @@ DSL_Error_t DSL_DRV_PM_CountersReset(
  16. }
  17. #endif /* #ifdef INCLUDE_DSL_CPE_PM_HISTORY*/
  18. - if (ResetType == DSL_PM_RESET_HISTORY)
  19. - break;
  20. + if (ResetType == DSL_PM_RESET_HISTORY)
  21. + break;
  22. +
  23. + fallthrough;
  24. case DSL_PM_RESET_TOTAL:
  25. #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS
  26. memset(EpData.pRecTotal, nFillValue, EpData.nEpRecElementSize);
  27. #endif /* #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS*/
  28. - if (ResetType == DSL_PM_RESET_TOTAL)
  29. - break;
  30. + if (ResetType == DSL_PM_RESET_TOTAL)
  31. + break;
  32. +
  33. + fallthrough;
  34. case DSL_PM_RESET_HISTORY_SHOWTIME:
  35. #ifdef INCLUDE_DSL_CPE_PM_SHOWTIME_COUNTERS
  36. --- a/src/common/drv_dsl_cpe_api.c
  37. +++ b/src/common/drv_dsl_cpe_api.c
  38. @@ -2653,6 +2653,8 @@ DSL_Error_t DSL_DRV_AutobootControlSet(
  39. /* no break */
  40. /* ... pass to restart*/
  41. + fallthrough;
  42. +
  43. #if defined (DSL_VRX_DEVICE_VR11)
  44. case DSL_AUTOBOOT_CTRL_STOP_PD:
  45. #endif