Skip to contentSkip to conversation

Bluetooth: msft: Fix compilation when CONFIG_BT_MSFTEXT is not set

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Dec 6, 2021

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: msft: Fix compilation when CONFIG_BT_MSFTEXT is not set

From: Luiz Augusto von Dentz <[email protected]>

This fixes compilation when CONFIG_BT_MSFTEXT is not set.

Fixes 6b3d4c8fcf3f2 ("Bluetooth: hci_event: Use of a function table to handle HCI events")
---
 net/bluetooth/msft.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/bluetooth/msft.h +2 -1
index 7fefc0655b6f..afcaf7d3b1cb 100644
@@ -39,7 +39,8 @@ static inline void msft_register(struct hci_dev *hdev) {}
 static inline void msft_unregister(struct hci_dev *hdev) {}
 static inline void msft_do_open(struct hci_dev *hdev) {}
 static inline void msft_do_close(struct hci_dev *hdev) {}
-static inline void msft_vendor_evt(struct hci_dev *hdev, struct sk_buff *skb) {}
+static inline void msft_vendor_evt(struct hci_dev *hdev, void *data,
+				   struct sk_buff *skb) {}
 static inline __u64 msft_get_features(struct hci_dev *hdev) { return 0; }
 static inline int msft_add_monitor_pattern(struct hci_dev *hdev,
 					   struct adv_monitor *monitor)
Signature · 1 line
2.33.1
maintainer
#1 lore raw

Hi Luiz,

Quoted 7 lines

This fixes compilation when CONFIG_BT_MSFTEXT is not set.

Fixes 6b3d4c8fcf3f2 ("Bluetooth: hci_event: Use of a function table to handle HCI events")

---
net/bluetooth/msft.h | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel