kernel: ltq-vdsl-vr11: fix compilation waring
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl-vr11 / patches / 211-fix-compilation-warning-missing-fallthrough.patch
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
19 - if (ResetType == DSL_PM_RESET_HISTORY)
20 - break;
21 + if (ResetType == DSL_PM_RESET_HISTORY)
22 + break;
23 +
24 + fallthrough;
25
26 case DSL_PM_RESET_TOTAL:
27 #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS
28 memset(EpData.pRecTotal, nFillValue, EpData.nEpRecElementSize);
29 #endif /* #ifdef INCLUDE_DSL_CPE_PM_TOTAL_COUNTERS*/
30 - if (ResetType == DSL_PM_RESET_TOTAL)
31 - break;
32 + if (ResetType == DSL_PM_RESET_TOTAL)
33 + break;
34 +
35 + fallthrough;
36
37 case DSL_PM_RESET_HISTORY_SHOWTIME:
38 #ifdef INCLUDE_DSL_CPE_PM_SHOWTIME_COUNTERS
39 --- a/src/common/drv_dsl_cpe_api.c
40 +++ b/src/common/drv_dsl_cpe_api.c
41 @@ -2652,6 +2652,8 @@ DSL_Error_t DSL_DRV_AutobootControlSet(
42 /* no break */
43 /* ... pass to restart*/
44
45 + fallthrough;
46 +
47 #if defined (DSL_VRX_DEVICE_VR11)
48 case DSL_AUTOBOOT_CTRL_STOP_PD:
49 #endif