Re: [PATCH v5 0/4] bt_att initial implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arman,

> v5:
>  - Removed the PDU signing related functions for now. We"ll revisit them once
>  we start implementing/testing the signed write command.
>  - Minor cosmetic changes.

forget my previous comment, I mixed up v4 with v5 :(

> Arman Uguray (4):
>  src/shared/att: Introduce struct bt_att.
>  src/shared/att: Implement basic boilerplate.
>  src/shared/att: Implement write handler and bt_att_send.
>  src/shared/att: Handle incoming response PDUs

A prefix of shared: or shared/att: is enough. The src/ part is too much.

> 
> Makefile.am            |   3 +-
> src/shared/att-types.h | 222 +++++++++++++
> src/shared/att.c       | 840 +++++++++++++++++++++++++++++++++++++++++++++++++
> src/shared/att.h       |  69 ++++
> 4 files changed, 1133 insertions(+), 1 deletion(-)
> create mode 100644 src/shared/att-types.h
> create mode 100644 src/shared/att.c
> create mode 100644 src/shared/att.h

However, you really need to use a proper compiler that gives you a decent amount of warnings.

  CC       src/shared/bluetoothd-att.o
src/shared/att.c: In function ‘encode_pdu’:
src/shared/att.c:194:2: error: label ‘dafault’ defined but not used [-Werror=unused-label]
  dafault:
  ^
src/shared/att.c: In function ‘handle_error_rsp’:
src/shared/att.c:447:8: error: unused variable ‘result’ [-Werror=unused-variable]
  bool result;
        ^
src/shared/att.c: In function ‘handle_mtu_rsp’:
src/shared/att.c:464:8: error: unused variable ‘result’ [-Werror=unused-variable]
  bool result;
        ^
src/shared/att.c: In function ‘bt_att_set_mtu’:
src/shared/att.c:689:11: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
  att->buf = buf;
           ^

I fixed them all up for you since they were dead simple fixes, but please be a bit more careful for the next set of patches.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux