BobZhome

data-ipa-cfg-mgr

Sep 16th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.03 KB | None | 0 0
  1. [ 9% 8637/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp
  2. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:154:27: warning: unused parameter 'param' [-Wunused-parameter]
  3. void* netlink_start(void *param)
  4. ^
  5. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:175:30: warning: unused parameter 'param' [-Wunused-parameter]
  6. void* firewall_monitor(void *param)
  7. ^
  8. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:258:38: warning: unused parameter 'param' [-Wunused-parameter]
  9. void* ipa_driver_wlan_notifier(void *param)
  10. ^
  11. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:652:6: warning: unused variable 'cnt' [-Wunused-variable]
  12. int cnt;
  13. ^
  14. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:696:18: warning: unused variable 'neigh' [-Wunused-variable]
  15. IPACM_Neighbor *neigh = new IPACM_Neighbor();
  16. ^
  17. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:697:22: warning: unused variable 'ifacemgr' [-Wunused-variable]
  18. IPACM_IfaceManager *ifacemgr = new IPACM_IfaceManager();
  19. ^
  20. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:703:25: warning: unused variable 'cc' [-Wunused-variable]
  21. IPACM_ConntrackClient *cc = IPACM_ConntrackClient::GetInstance();
  22. ^
  23. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:686:14: warning: unused parameter 'argc' [-Wunused-parameter]
  24. int main(int argc, char **argv)
  25. ^
  26. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Main.cpp:686:27: warning: unused parameter 'argv' [-Wunused-parameter]
  27. int main(int argc, char **argv)
  28. ^
  29. 9 warnings generated.
  30. [ 9% 8641/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_CmdQueue.cpp
  31. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_CmdQueue.cpp:102:35: warning: unused parameter 'param' [-Wunused-parameter]
  32. void* MessageQueue::Process(void *param)
  33. ^
  34. 1 warning generated.
  35. [ 9% 8645/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp
  36. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:213:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  37. for(i=0; i<iface_query->num_tx_props; i++)
  38. ~^~~~~~~~~~~~~~~~~~~~~~~~~~
  39. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:272:24: warning: unused variable 'data_wan' [-Wunused-variable]
  40. ipacm_event_iface_up* data_wan;
  41. ^
  42. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:503:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  43. if (data_wan_tether->if_index_tether == ipa_if_num)
  44. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  45. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:532:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  46. if (data_wan_tether->if_index_tether == ipa_if_num)
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  48. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:561:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  49. if (data_wan_tether->if_index_tether == ipa_if_num)
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  51. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:581:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  52. if (data_wan_tether->if_index_tether == ipa_if_num)
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  54. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1405:17: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  55. for(cnt=0; cnt<rx_prop->num_rx_props; cnt++)
  56. ~~~^~~~~~~~~~~~~~~~~~~~~~
  57. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1546:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  58. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  59. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. %zu
  61. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  62. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  63. ^~~~~~~~~~~
  64. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1546:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  65. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  66. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. %zu
  68. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  69. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  70. ^~~~~~~~~~~
  71. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1554:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  72. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  73. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. %zu
  75. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  76. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  77. ^~~~~~~~~~~
  78. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1554:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  79. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  80. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  81. %zu
  82. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  83. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  84. ^~~~~~~~~~~
  85. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1637:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  86. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  87. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88. %zu
  89. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  90. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  91. ^~~~~~~~~~~
  92. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1637:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  93. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  94. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  95. %zu
  96. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  97. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  98. ^~~~~~~~~~~
  99. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1644:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  100. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  101. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  102. %zu
  103. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  104. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  105. ^~~~~~~~~~~
  106. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1644:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  107. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  108. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  109. %zu
  110. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  111. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  112. ^~~~~~~~~~~
  113. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1756:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
  114. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  115. ^ ~
  116. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:1756:54: note: use '|' for a bitwise operation
  117. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  118. ^~
  119. |
  120. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:2445:11: warning: unused variable 'temp_eth_bridge_flt_rule' [-Wunused-variable]
  121. uint32_t temp_eth_bridge_flt_rule[IPA_LAN_TO_LAN_MAX_WLAN_CLIENT];
  122. ^
  123. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3673:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  124. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  125. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126. %zu
  127. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  128. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  129. ^~~~~~~~~~~
  130. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3673:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  131. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  132. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. %zu
  134. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  135. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  136. ^~~~~~~~~~~
  137. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3760:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  138. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  139. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140. %zu
  141. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  142. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  143. ^~~~~~~~~~~
  144. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3760:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  145. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  146. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  147. %zu
  148. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  149. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  150. ^~~~~~~~~~~
  151. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3611:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  152. for(i=0; i<tx_prop->num_tx_props; i++)
  153. ~^~~~~~~~~~~~~~~~~~~~~~
  154. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:3699:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  155. for(i=0; i<tx_prop->num_tx_props; i++)
  156. ~^~~~~~~~~~~~~~~~~~~~~~
  157. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:4714:66: warning: unused parameter 'iptype' [-Wunused-parameter]
  158. int IPACM_Lan::eth_bridge_add_wlan_guest_ap_flt_rule(ipa_ip_type iptype)
  159. ^
  160. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:4720:72: warning: unused parameter 'iptype' [-Wunused-parameter]
  161. int IPACM_Lan::eth_bridge_handle_dummy_usb_client_flt_rule(ipa_ip_type iptype)
  162. ^
  163. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5171:73: warning: unused parameter 'iptype' [-Wunused-parameter]
  164. int IPACM_Lan::eth_bridge_install_cache_usb_client_flt_rule(ipa_ip_type iptype)
  165. ^
  166. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5274:12: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  167. for(i=0; i<iface_query->num_tx_props; i++)
  168. ~^~~~~~~~~~~~~~~~~~~~~~~~~~
  169. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5605:32: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  170. for (pipe_len = 0; pipe_len < data->dl_dst_pipe_stats_list_len; pipe_len++)
  171. ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  172. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5608:20: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  173. for (cnt=0; cnt<tx_prop->num_tx_props; cnt++)
  174. ~~~^~~~~~~~~~~~~~~~~~~~~~
  175. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5611:72: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  176. if(ioctl(fd, IPA_IOC_QUERY_EP_MAPPING, tx_prop->tx[cnt].dst_pipe) == data->dl_dst_pipe_stats_list[pipe_len].pipe_index)
  177. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5632:32: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  179. for (pipe_len = 0; pipe_len < data->ul_src_pipe_stats_list_len; pipe_len++)
  180. ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  181. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5635:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  182. for (cnt=0; cnt < rx_prop->num_rx_props; cnt++)
  183. ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
  184. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5638:72: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  185. if(ioctl(fd, IPA_IOC_QUERY_EP_MAPPING, rx_prop->rx[cnt].src_pipe) == data->ul_src_pipe_stats_list[pipe_len].pipe_index)
  186. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  187. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5713:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  188. for (cnt = 0; cnt < tx_prop->num_tx_props; cnt++)
  189. ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
  190. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Lan.cpp:5725:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  191. for (cnt = 0; cnt < rx_prop->num_rx_props; cnt++)
  192. ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
  193. 35 warnings generated.
  194. [ 9% 8646/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp
  195. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp:237:11: warning: unused variable 'flt_hdl' [-Wunused-variable]
  196. uint32_t flt_hdl;
  197. ^
  198. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Iface.cpp:236:14: warning: unused variable 'ip' [-Wunused-variable]
  199. ipa_ip_type ip;
  200. ^
  201. 2 warnings generated.
  202. [ 9% 8647/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp
  203. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:202:24: warning: unused variable 'data_wan' [-Wunused-variable]
  204. ipacm_event_iface_up* data_wan;
  205. ^
  206. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:391:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  207. if (data_wan_tether->if_index_tether == ipa_if_num)
  208. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  209. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:420:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  210. if (data_wan_tether->if_index_tether == ipa_if_num)
  211. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  212. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:452:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  213. if (data_wan_tether->if_index_tether == ipa_if_num)
  214. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  215. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:480:40: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare]
  216. if (data_wan_tether->if_index_tether == ipa_if_num)
  217. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
  218. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1665:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  219. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  220. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  221. %zu
  222. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  223. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  224. ^~~~~~~~~~~
  225. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1665:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  226. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  227. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  228. %zu
  229. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  230. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  231. ^~~~~~~~~~~
  232. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1672:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  233. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  234. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  235. %zu
  236. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  237. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  238. ^~~~~~~~~~~
  239. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1672:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  240. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  241. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  242. %zu
  243. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  244. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  245. ^~~~~~~~~~~
  246. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1769:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  247. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  248. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  249. %zu
  250. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  251. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  252. ^~~~~~~~~~~
  253. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1769:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  254. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  255. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  256. %zu
  257. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  258. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  259. ^~~~~~~~~~~
  260. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1777:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  261. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  262. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  263. %zu
  264. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  265. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  266. ^~~~~~~~~~~
  267. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1777:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  268. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  269. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  270. %zu
  271. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  272. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  273. ^~~~~~~~~~~
  274. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1890:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
  275. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  276. ^ ~
  277. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:1890:54: note: use '|' for a bitwise operation
  278. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  279. ^~
  280. |
  281. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2926:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  282. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  283. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  284. %zu
  285. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  286. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  287. ^~~~~~~~~~~
  288. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2926:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  289. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  290. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  291. %zu
  292. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  293. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  294. ^~~~~~~~~~~
  295. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3044:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  296. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  297. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  298. %zu
  299. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  300. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  301. ^~~~~~~~~~~
  302. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3044:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  303. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeader->hdr[0].name));
  304. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  305. %zu
  306. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  307. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  308. ^~~~~~~~~~~
  309. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2835:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  310. for(i=0; i<tx_prop->num_tx_props; i++)
  311. ~^~~~~~~~~~~~~~~~~~~~~~
  312. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:2952:13: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  313. for(i=0; i<tx_prop->num_tx_props; i++)
  314. ~^~~~~~~~~~~~~~~~~~~~~~
  315. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:3329:14: warning: unused variable 'res' [-Wunused-variable]
  316. int i, len, res = IPACM_SUCCESS, offset;
  317. ^
  318. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wlan.cpp:4432:12: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  319. for(i=0; i<iface_query->num_tx_props; i++)
  320. ~^~~~~~~~~~~~~~~~~~~~~~~~~~
  321. 22 warnings generated.
  322. [ 9% 8648/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp
  323. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1526:69: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  324. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  325. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  326. %zu
  327. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  328. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  329. ^~~~~~~~~~~
  330. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1526:69: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  331. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  332. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  333. %zu
  334. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  335. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  336. ^~~~~~~~~~~
  337. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1618:74: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  338. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  339. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  340. %zu
  341. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  342. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  343. ^~~~~~~~~~~
  344. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:1618:74: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  345. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  346. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  347. %zu
  348. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  349. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  350. ^~~~~~~~~~~
  351. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2810:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  352. char *dev_wlan0="wlan0";
  353. ^
  354. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2811:18: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  355. char *dev_wlan1="wlan1";
  356. ^
  357. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2812:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
  358. char *dev_ecm0="ecm0";
  359. ^
  360. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2810:8: warning: unused variable 'dev_wlan0' [-Wunused-variable]
  361. char *dev_wlan0="wlan0";
  362. ^
  363. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2812:8: warning: unused variable 'dev_ecm0' [-Wunused-variable]
  364. char *dev_ecm0="ecm0";
  365. ^
  366. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:2811:8: warning: unused variable 'dev_wlan1' [-Wunused-variable]
  367. char *dev_wlan1="wlan1";
  368. ^
  369. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:3120:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  370. for (cnt = 0; cnt < ext_prop->num_ext_props; cnt++)
  371. ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
  372. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4854:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  373. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  374. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  375. %zu
  376. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  377. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  378. ^~~~~~~~~~~
  379. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4854:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  380. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  381. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  382. %zu
  383. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  384. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  385. ^~~~~~~~~~~
  386. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4862:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  387. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  388. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  389. %zu
  390. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  391. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  392. ^~~~~~~~~~~
  393. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4862:76: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  394. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  395. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396. %zu
  397. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  398. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  399. ^~~~~~~~~~~
  400. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4941:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  401. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  402. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  403. %zu
  404. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  405. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  406. ^~~~~~~~~~~
  407. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4941:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  408. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  409. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410. %zu
  411. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  412. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  413. ^~~~~~~~~~~
  414. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4948:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  415. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  416. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  417. %zu
  418. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  419. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  420. ^~~~~~~~~~~
  421. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:4948:72: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  422. IPACMERR(" header name construction failed exceed length (%d)\n", strlen(pHeaderDescriptor->hdr[0].name));
  423. ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  424. %zu
  425. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  426. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  427. ^~~~~~~~~~~
  428. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5064:54: warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
  429. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  430. ^ ~
  431. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5064:54: note: use '|' for a bitwise operation
  432. (data->ipv6_addr[2] != 0) || (data->ipv6_addr[3] || 0)) /* check if all 0 not valid ipv6 address */
  433. ^~
  434. |
  435. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Wan.cpp:5303:35: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
  436. for (int apn_index =0; apn_index < data->apn_data_stats_list_len; apn_index++)
  437. ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438. 21 warnings generated.
  439. [ 9% 8649/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_IfaceManager.cpp
  440. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_IfaceManager.cpp:72:37: warning: missing field 'if_type' initializer [-Wmissing-field-initializers]
  441. ipacm_ifacemgr_data ifmgr_data = {0};
  442. ^
  443. 1 warning generated.
  444. [ 9% 8650/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Netlink.cpp
  445. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Netlink.cpp:610:15: warning: unused variable 'mask_value' [-Wunused-variable]
  446. int ret_val, mask_value, mask_index, mask_value_v6;
  447. ^
  448. 1 warning generated.
  449. [ 9% 8653/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp
  450. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:197:22: warning: equality comparison result unused [-Wunused-comparison]
  451. cache[cnt].enabled ==false;
  452. ~~~~~~~~~~~~~~~~~~~^~~~~~~
  453. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:197:22: note: use '=' to turn this equality comparison into an assignment
  454. cache[cnt].enabled ==false;
  455. ^~
  456. =
  457. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:865:9: warning: variable 'cnt' is uninitialized when used here [-Wuninitialized]
  458. for(; cnt < max_entries; cnt++)
  459. ^~~
  460. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Conntrack_NATApp.cpp:852:9: note: initialize the variable 'cnt' to silence this warning
  461. int cnt;
  462. ^
  463. = 0
  464. 2 warnings generated.
  465. [ 9% 8654/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp
  466. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:97:9: warning: unused parameter 'data' [-Wunused-parameter]
  467. void *data
  468. ^
  469. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:175:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  470. strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name));
  471. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:75:102: note: expanded from macro 'IPACMERR'
  473. snprintf(buffer_send,MAX_BUF_LEN,"ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
  474. ^~~~~~~~~~~
  475. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:175:4: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  476. strlen(IPACM_Iface::ipacmcfg->ipa_virtual_iface_name));
  477. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/../inc/IPACM_Log.h:77:76: note: expanded from macro 'IPACMERR'
  479. printf("ERR: %s:%d %s() " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);
  480. ^~~~~~~~~~~
  481. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackClient.cpp:383:57: warning: unused parameter 'ptr' [-Wunused-parameter]
  482. void* IPACM_ConntrackClient::UDPConnTimeoutUpdate(void *ptr)
  483. ^
  484. 4 warnings generated.
  485. [ 9% 8655/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackListener.cpp
  486. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_ConntrackListener.cpp:471:29: warning: unused variable 'secmark' [-Wunused-variable]
  487. uint32_t status, timeout, secmark;
  488. ^
  489. 1 warning generated.
  490. [ 9% 8656/93512] target C++: ipacm <= device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp
  491. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp:53:21: warning: unused parameter 'log_level' [-Wunused-parameter]
  492. void logmessage(int log_level)
  493. ^
  494. device/oneplus/oneplus2/data-ipa-cfg-mgr/ipacm/src/IPACM_Log.cpp:62:50: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
  495. if ((*sockfd = socket(AF_UNIX, SOCK_DGRAM, 0)) == IPACM_FAILURE)
  496. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
  497. 2 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment