Add bt_host_hci prototype
PATCH 1/1 Add bt_host_hci prototype
Silence compiler warning by providing a prototype in the CONFIG_BLUEZ case (hw/bt.h provides it otherwise).
Signed-off-by Jan Kiszka <[email protected]>
---
bt-host.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
bt-host.c +2 -0
@@ -32,6 +32,8 @@# include <bluetooth/bluetooth.h> # include <bluetooth/hci.h> # include <bluetooth/hci_lib.h> +/* Silence compiler warning */ +struct HCIInfo *bt_host_hci (const char *id);# else # include "hw/bt.h" # define HCI_MAX_FRAME_SIZE 1028
Quoted 17 lines · Jan Kiszka
Silence compiler warning by providing a prototype in the
CONFIG_BLUEZcase (hw/bt.hprovides it otherwise).Signed-off-by Jan Kiszka <[email protected]>---
bt-host.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)bt-host.c +0
-0
bt-host.c line 39
Quoted 8 lines
bt-host.c +2
-0@@ -32,6 +32,8 @@# include <bluetooth/bluetooth.h> # include <bluetooth/hci.h> # include <bluetooth/hci_lib.h> +/* Silence compiler warning */ +struct HCIInfo *bt_host_hci (const char *id);# else # include "hw/bt.h" # define HCI_MAX_FRAME_SIZE 1028
This warning still bugs us, please apply this or any better fix.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26 Corporate Competence Center Embedded Linux