Advertisement
reconfreak

Bluedroid error

Feb 12th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.95 KB | None | 0 0
  1. target thumb C: l2test_ertm <= external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c
  2. Import includes file: /home/reconfreak/android/cfx/out/target/product/d800/obj/EXECUTABLES/linker_intermediates/import_includes
  3. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:138:41: warning: missing field 'allowed_modes' initializer [-Wmissing-field-initializers]
  4. static tL2CAP_ERTM_INFO t_ertm_info = {0};
  5. ^
  6. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:171:44: warning: missing field 'mtu_present' initializer [-Wmissing-field-initializers]
  7. static tL2CAP_CFG_INFO tl2cap_cfg_info = {0};
  8. ^
  9. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:203:76: warning: unused parameter 'psm' [-Wunused-parameter]
  10. static void l2test_l2c_connect_ind_cb(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id)
  11. ^
  12. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
  13. if ((result == L2CAP_CONN_OK) ) {
  14. ~~~~~~~^~~~~~~~~~~~~~~~
  15. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: note: remove extraneous parentheses around the comparison to silence this warning
  16. if ((result == L2CAP_CONN_OK) ) {
  17. ~ ^ ~
  18. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:227:17: note: use '=' to turn this equality comparison into an assignment
  19. if ((result == L2CAP_CONN_OK) ) {
  20. ^~
  21. =
  22. target thumb C++: libc_nomalloc <= bionic/libc/bionic/pthread_create.cpp
  23. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:237:46: warning: unused parameter 'lcid' [-Wunused-parameter]
  24. static void l2test_l2c_connect_pnd_cb(UINT16 lcid)
  25. ^
  26. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:282:49: warning: unused parameter 'lcid' [-Wunused-parameter]
  27. static void l2test_l2c_disconnect_cfm_cb(UINT16 lcid, UINT16 result)
  28. ^
  29. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:282:62: warning: unused parameter 'result' [-Wunused-parameter]
  30. static void l2test_l2c_disconnect_cfm_cb(UINT16 lcid, UINT16 result)
  31. ^
  32. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:287:48: warning: unused parameter 'bd_addr' [-Wunused-parameter]
  33. static void l2test_l2c_QoSViolationInd(BD_ADDR bd_addr)
  34. ^
  35. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:291:43: warning: unused parameter 'lcid' [-Wunused-parameter]
  36. static void l2test_l2c_data_ind_cb(UINT16 lcid, BT_HDR *p_buf)
  37. ^
  38. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:295:49: warning: unused parameter 'lcid' [-Wunused-parameter]
  39. static void l2test_l2c_congestion_ind_cb(UINT16 lcid, BOOLEAN is_congested)
  40. ^
  41. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:295:63: warning: unused parameter 'is_congested' [-Wunused-parameter]
  42. static void l2test_l2c_congestion_ind_cb(UINT16 lcid, BOOLEAN is_congested)
  43. ^
  44. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:366:5: warning: implicit declaration of function 'capset' is invalid in C99 [-Wimplicit-function-declaration]
  45. capset(&header, &cap);
  46. ^
  47. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:509:12: warning: 12 enumeration values not handled in switch: 'BT_PROPERTY_BDNAME', 'BT_PROPERTY_UUIDS', 'BT_PROPERTY_CLASS_OF_DEVICE'... [-Wswitch]
  48. switch(properties->type)
  49. ^
  50. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:502:52: warning: unused parameter 'status' [-Wunused-parameter]
  51. static void adapter_properties_changed(bt_status_t status, int num_properties, bt_property_t *properties)
  52. ^
  53. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:502:64: warning: unused parameter 'num_properties' [-Wunused-parameter]
  54. static void adapter_properties_changed(bt_status_t status, int num_properties, bt_property_t *properties)
  55. ^
  56. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:524:70: warning: unused parameter 'bd_name' [-Wunused-parameter]
  57. static void pin_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name, uint32_t cod)
  58. ^
  59. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:524:88: warning: unused parameter 'cod' [-Wunused-parameter]
  60. static void pin_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name, uint32_t cod)
  61. ^
  62. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:535:70: warning: unused parameter 'bd_name' [-Wunused-parameter]
  63. static void ssp_request_cb(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name,
  64. ^
  65. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:536:37: warning: unused parameter 'cod' [-Wunused-parameter]
  66. uint32_t cod, bt_ssp_variant_t pairing_variant, uint32_t pass_key)
  67. ^
  68. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:543:47: warning: unused parameter 'status' [-Wunused-parameter]
  69. static void bond_state_changed_cb(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_bond_state_t state)
  70. ^
  71. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:543:68: warning: unused parameter 'remote_bd_addr' [-Wunused-parameter]
  72. static void bond_state_changed_cb(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_bond_state_t state)
  73. ^
  74. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:43: warning: unused parameter 'status' [-Wunused-parameter]
  75. static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
  76. ^
  77. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:64: warning: unused parameter 'remote_bd_addr' [-Wunused-parameter]
  78. static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
  79. ^
  80. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:549:95: warning: unused parameter 'state' [-Wunused-parameter]
  81. static void acl_state_changed(bt_status_t status, bt_bdaddr_t *remote_bd_addr, bt_acl_state_t state)
  82. ^
  83. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:36: warning: unused parameter 'opcode' [-Wunused-parameter]
  84. static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
  85. ^
  86. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:53: warning: unused parameter 'buf' [-Wunused-parameter]
  87. static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
  88. ^
  89. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:554:66: warning: unused parameter 'len' [-Wunused-parameter]
  90. static void dut_mode_recv(uint16_t opcode, uint8_t *buf, uint8_t len)
  91. ^
  92. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:567:5: warning: incompatible pointer types initializing 'ssp_request_callback' (aka 'void (*)(bt_bdaddr_t *, bt_bdname_t *, uint32_t, bt_ssp_variant_t, uint32_t)') with an expression of type 'void (bt_bdaddr_t *, bt_bdname_t *, uint32_t)' [-Wincompatible-pointer-types]
  93. pin_request_cb, /* pin_request_cb */
  94. ^~~~~~~~~~~~~~
  95. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:568:5: warning: incompatible pointer types initializing 'bond_state_changed_callback' (aka 'void (*)(bt_status_t, bt_bdaddr_t *, bt_bond_state_t)') with an expression of type 'void (bt_bdaddr_t *, bt_bdname_t *, uint32_t, bt_ssp_variant_t, uint32_t)' [-Wincompatible-pointer-types]
  96. ssp_request_cb, /* ssp_request_cb */
  97. ^~~~~~~~~~~~~~
  98. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:569:5: warning: incompatible pointer types initializing 'acl_state_changed_callback' (aka 'void (*)(bt_status_t, bt_bdaddr_t *, bt_acl_state_t)') with an expression of type 'void (bt_status_t, bt_bdaddr_t *, bt_bond_state_t)' [-Wincompatible-pointer-types]
  99. bond_state_changed_cb, /*bond_state_changed_cb */
  100. ^~~~~~~~~~~~~~~~~~~~~
  101. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:570:5: warning: incompatible pointer types initializing 'callback_thread_event' (aka 'void (*)(bt_cb_thread_evt)') with an expression of type 'void (bt_status_t, bt_bdaddr_t *, bt_acl_state_t)' [-Wincompatible-pointer-types]
  102. acl_state_changed, /* acl_state_changed_cb */
  103. ^~~~~~~~~~~~~~~~~
  104. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:572:5: warning: incompatible pointer types initializing 'le_test_mode_callback' (aka 'void (*)(bt_status_t, uint16_t)') with an expression of type 'void (uint16_t, uint8_t *, uint8_t)' [-Wincompatible-pointer-types]
  105. dut_mode_recv, /*dut_mode_recv_cb */
  106. ^~~~~~~~~~~~~
  107. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:573:5: warning: excess elements in struct initializer
  108. NULL /*le_test_mode_cb*/
  109. ^~~~
  110. bionic/libc/kernel/common/linux/stddef.h:27:14: note: expanded from macro 'NULL'
  111. #define NULL ((void *)0)
  112. ^~~~~~~~~~~
  113. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:613:40: error: no member named 'get_testapp_interface' in 'bt_interface_t'; did you mean 'get_profile_interface'?
  114. if ((sBtInterface)&&(sBtInterface->get_testapp_interface)) {
  115. ^~~~~~~~~~~~~~~~~~~~~
  116. get_profile_interface
  117. hardware/libhardware/include/hardware/bluetooth.h:442:19: note: 'get_profile_interface' declared here
  118. const void* (*get_profile_interface) (const char *profile_id);
  119. ^
  120. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:30: error: no member named 'get_testapp_interface' in 'bt_interface_t'; did you mean 'get_profile_interface'?
  121. return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
  122. ^~~~~~~~~~~~~~~~~~~~~
  123. get_profile_interface
  124. hardware/libhardware/include/hardware/bluetooth.h:442:19: note: 'get_profile_interface' declared here
  125. const void* (*get_profile_interface) (const char *profile_id);
  126. ^
  127. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:52: warning: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Wnon-literal-null-conversion]
  128. return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
  129. ^~~~~~~~~~~~~~
  130. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:614:16: warning: returning 'const void *' from a function with result type 'btl2cap_interface_t *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  131. return sBtInterface->get_testapp_interface(TEST_APP_L2CAP);
  132. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:623:20: warning: unused parameter 'p' [-Wunused-parameter]
  134. void do_quit(char *p)
  135. ^
  136. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:636:20: warning: unused parameter 'p' [-Wunused-parameter]
  137. void do_init(char *p)
  138. ^
  139. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:641:25: warning: unused parameter 'p' [-Wunused-parameter]
  140. BOOLEAN do_enable(char *p)
  141. ^
  142. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:652:26: warning: unused parameter 'p' [-Wunused-parameter]
  143. BOOLEAN do_disable(char *p)
  144. ^
  145. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:663:23: warning: unused parameter 'p' [-Wunused-parameter]
  146. void do_cleanup(char *p)
  147. ^
  148. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:685:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
  149. Arr[i] = tolower(Arr[i]);
  150. ^~
  151. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:685:29: warning: array subscript is of type 'char' [-Wchar-subscripts]
  152. Arr[i] = tolower(Arr[i]);
  153. ^~
  154. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:698:26: warning: array subscript is of type 'char' [-Wchar-subscripts]
  155. pbd_addr->address[i] = (k1<<4 | k2);
  156. ^~
  157. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:703:26: warning: unused parameter 'p' [-Wunused-parameter]
  158. void do_l2cap_init(char *p)
  159. ^
  160. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:744:32: warning: unused parameter 'p' [-Wunused-parameter]
  161. void do_l2cap_deregister(char *p)
  162. ^
  163. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:757:55: warning: incompatible pointer types passing 'uint8_t (*)[6]' to parameter of type 'UINT8 *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
  164. return sL2capInterface->ErtmConnectReq(g_PSM, &bd_addr.address, &t_ertm_info);
  165. ^~~~~~~~~~~~~~~~
  166. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:776:35: warning: unused parameter 'p' [-Wunused-parameter]
  167. BOOLEAN do_l2cap_disconnect(char *p)
  168. ^
  169. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:877:24: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
  170. do_l2cap_DataWrite(tmpBuf, size);
  171. ^~~~~~
  172. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:781:32: note: passing argument to parameter 'p' here
  173. UINT8 do_l2cap_DataWrite(char *p , UINT32 len)
  174. ^
  175. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:893:28: warning: passing 'unsigned char [7]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
  176. do_l2cap_DataWrite(tmpBuffer, 5);
  177. ^~~~~~~~~
  178. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:781:32: note: passing argument to parameter 'p' here
  179. UINT8 do_l2cap_DataWrite(char *p , UINT32 len)
  180. ^
  181. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:895:53: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  182. printf("Delaying before next send ...%d\n", g_delay);
  183. ~~ ^~~~~~~
  184. %lu
  185. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:897:56: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  186. printf("After Delay before next send ...%d\n", g_delay);
  187. ~~ ^~~~~~~
  188. %lu
  189. external/bluetooth/bluedroid/test/l2test_ertm/l2test_ertm.c:400:13: warning: tentative array definition assumed to have one element
  190. const t_cmd console_cmd_list[];
  191. ^
  192. 52 warnings and 2 errors generated.
  193. make: *** [/home/reconfreak/android/cfx/out/target/product/d800/obj/EXECUTABLES/l2test_ertm_intermediates/l2test_ertm.o] Error 1
  194. make: *** Waiting for unfinished jobs....
  195. target thumb C++: libc_nomalloc <= bionic/libc/bionic/pthread_key.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement