mediatek: add firmware name for AQR PHYs on mt7988a-rfb
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl-vr9 / patches / 301-fix-compilation-warning-simple-fix.patch
1 --- a/src/common/drv_dsl_cpe_os_linux.c
2 +++ b/src/common/drv_dsl_cpe_os_linux.c
3 @@ -54,7 +54,7 @@ static int DSL_DRV_Release(DSL_DRV_inode_t * ino, DSL_DRV_file_t * fil);
4
5 static DSL_uint_t DSL_DRV_Poll(DSL_DRV_file_t *pFile, DSL_DRV_Poll_Table_t *wait);
6
7 -#ifdef INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT
8 +#if defined(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT) && !defined(DSL_DEBUG_DISABLE)
9 static void DSL_DRV_NlSendMsg(DSL_char_t* pMsg);
10 #endif
11
12 @@ -368,10 +368,10 @@ int DSL_DRV_debug_printf(DSL_Context_t const *pContext, DSL_char_t const *fmt, .
13 {
14 DSL_int_t nRet = 0;
15 #ifndef _lint
16 - DSL_int_t nLength = 0;
17 - DSL_boolean_t bPrint = DSL_FALSE;
18 #ifdef INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT
19 #ifndef DSL_DEBUG_DISABLE
20 + DSL_int_t nLength = 0;
21 + DSL_boolean_t bPrint = DSL_FALSE;
22 DSL_char_t debugString[DSL_DBG_MAX_DEBUG_PRINT_CHAR + 1] = {0};
23 va_list ap; /* points to each unnamed arg in turn */
24
25 @@ -406,6 +406,8 @@ int DSL_DRV_debug_printf(DSL_Context_t const *pContext, DSL_char_t const *fmt, .
26 #endif /* DSL_DEBUG_DISABLE */
27 return nRet;
28 #else
29 + DSL_int_t nLength = 0;
30 + DSL_boolean_t bPrint = DSL_FALSE;
31 DSL_char_t msg[DSL_DBG_MAX_DEBUG_PRINT_CHAR + 1] = "\0";
32 va_list ap; /* points to each unnamed arg in turn */
33
34 @@ -1172,7 +1174,7 @@ static void DSL_DRV_DebugInit(void)
35 return;
36 }
37
38 -#ifdef INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT
39 +#if defined(INCLUDE_DSL_CPE_DEBUG_LOGGER_SUPPORT) && !defined(DSL_DEBUG_DISABLE)
40 static void DSL_DRV_NlSendMsg(DSL_char_t* pMsg)
41 {
42 struct nlmsghdr *pNlMsgHdr;
43 @@ -1261,7 +1263,7 @@ void __exit DSL_ModuleCleanup(void)
44 printk("Module will be unloaded"DSL_DRV_CRLF);
45
46 device_destroy(dsl_class, dsl_devt);
47 - dsl_devt = NULL;
48 + dsl_devt = 0;
49 class_destroy(dsl_class);
50 dsl_class = NULL;
51
52 --- a/src/device/drv_dsl_cpe_msg_vrx.c
53 +++ b/src/device/drv_dsl_cpe_msg_vrx.c
54 @@ -2456,32 +2456,32 @@ DSL_Error_t DSL_DRV_VRX_SendMsgSnrPerGroupesGet(
55 #endif /* defined(INCLUDE_DSL_G997_PER_TONE) || defined(INCLUDE_DSL_DELT)*/
56
57 #ifdef INCLUDE_DSL_DELT
58 -static DSL_Error_t DSL_DRV_VRX_SpreadArray(
59 - DSL_void_t* pArray,
60 - DSL_uint16_t valueSize,
61 - DSL_uint16_t valueCount,
62 - DSL_uint16_t multiplier)
63 -{
64 - DSL_void_t* pSrc = pArray + valueSize * (valueCount - 1);
65 - DSL_void_t* pDst = pArray + valueSize * (valueCount*multiplier - 1);
66 -
67 - if (pArray == DSL_NULL)
68 - {
69 - return DSL_ERROR;
70 - }
71 -
72 - for (; valueCount; --valueCount, pSrc -= valueSize)
73 - {
74 - DSL_uint16_t i;
75 -
76 - for ( i = multiplier; i; --i, pDst -= valueSize)
77 - {
78 - memcpy(pDst,pSrc,valueSize);
79 - }
80 - }
81 -
82 - return DSL_SUCCESS;
83 -}
84 +// static DSL_Error_t DSL_DRV_VRX_SpreadArray(
85 +// DSL_void_t* pArray,
86 +// DSL_uint16_t valueSize,
87 +// DSL_uint16_t valueCount,
88 +// DSL_uint16_t multiplier)
89 +// {
90 +// DSL_void_t* pSrc = pArray + valueSize * (valueCount - 1);
91 +// DSL_void_t* pDst = pArray + valueSize * (valueCount*multiplier - 1);
92 +
93 +// if (pArray == DSL_NULL)
94 +// {
95 +// return DSL_ERROR;
96 +// }
97 +
98 +// for (; valueCount; --valueCount, pSrc -= valueSize)
99 +// {
100 +// DSL_uint16_t i;
101 +
102 +// for ( i = multiplier; i; --i, pDst -= valueSize)
103 +// {
104 +// memcpy(pDst,pSrc,valueSize);
105 +// }
106 +// }
107 +
108 +// return DSL_SUCCESS;
109 +// }
110
111 /**
112 This function requests a set of up to 60 entries of the DELT data.
113 --- a/src/device/drv_dsl_cpe_device_vrx.c
114 +++ b/src/device/drv_dsl_cpe_device_vrx.c
115 @@ -3356,7 +3356,9 @@ static DSL_Error_t DSL_DRV_VRX_TestParametersFeUpdate(
116 DSL_Error_t nErrCode = DSL_SUCCESS;
117 DSL_uint16_t i = 0;
118 DSL_uint16_t nDataLen = 0;
119 +#ifndef DSL_DEBUG_DISABLE
120 DSL_uint16_t nMsgId = EVT_PMD_TESTPARAMSGET;
121 +#endif /* DSL_DEBUG_DISABLE */
122
123 DSL_DEBUG( DSL_DBG_MSG,
124 (pContext, SYS_DBG_MSG"DSL[%02d]: IN - DSL_DRV_VRX_TestParametersFeUpdate"
125 @@ -8312,6 +8314,7 @@ DSL_Error_t DSL_DRV_DEV_AutobootHandleTraining(
126 (pContext, SYS_DBG_MSG"DSL[%02d]: ORDERLY_SHUTDOWN state reached"
127 DSL_DRV_CRLF, DSL_DEV_NUM(pContext)));
128 /* do not use break here, continue handling */
129 + fallthrough;
130 #endif /* INCLUDE_DSL_CPE_API_VRX */
131 case DSL_LINESTATE_EXCEPTION:
132 if (!bPreFail)