Skip to contentSkip to conversation

Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV

PATCH In review Johan Hedberg 2 participants 2 messages Aug 4, 2018 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: h5: Fix missing dependency on BT_HCIUART_SERDEV

From: Johan Hedberg <[email protected]>

This driver was recently updated to use serdev, so add the appropriate dependency. Without this one can get compiler warnings like this if CONFIG_SERIAL_DEV_BUS is not enabled:

CC [M] drivers/bluetooth/hci_h5.o
drivers/bluetooth/hci_h5.c:934:36: warning: ‘h5_serdev_driver’ defined but not used [-Wunused-variable]

 static struct serdev_device_driver h5_serdev_driver = {
                                    ^~~~~~~~~~~~~~~~
---
 drivers/bluetooth/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/Kconfig +1 -0
index f3c643a0473c..5f953ca8ac5b 100644
@@ -159,6 +159,7 @@ config BT_HCIUART_LL
 config BT_HCIUART_3WIRE
 	bool "Three-wire UART (H5) protocol support"
 	depends on BT_HCIUART
+	depends on BT_HCIUART_SERDEV
 	help
 	  The HCI Three-wire UART Transport Layer makes it possible to
 	  user the Bluetooth HCI over a serial port interface. The HCI
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Hi Johan,

Quoted 6 lines

This driver was recently updated to use serdev, so add the appropriate dependency. Without this one can get compiler warnings like this if CONFIG_SERIAL_DEV_BUS is not enabled:

CC [M] drivers/bluetooth/hci_h5.o
drivers/bluetooth/hci_h5.c:934:36: warning: ‘h5_serdev_driver’ defined but not used [-Wunused-variable]

Quoted 7 lines
static struct serdev_device_driver h5_serdev_driver = {
                                   ^~~~~~~~~~~~~~~~

---
drivers/bluetooth/Kconfig | 1 +

1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel