]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Bluetooth: hci_sync: Fix compilation warning
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sun, 9 Jan 2022 05:21:45 +0000 (21:21 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Jan 2022 16:41:38 +0000 (17:41 +0100)
This fixes the following warning:

net/bluetooth/hci_sync.c:5143:5: warning: no previous prototype for
‘hci_le_ext_create_conn_sync’ [-Wmissing-prototypes]

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sync.c

index 0feb68f125456b1ff770d04cdfb9c3de79067417..2fe8c60dc62bc9e53d92713b35a1315119703f5c 100644 (file)
@@ -5140,8 +5140,8 @@ static void set_ext_conn_params(struct hci_conn *conn,
        p->max_ce_len = cpu_to_le16(0x0000);
 }
 
-int hci_le_ext_create_conn_sync(struct hci_dev *hdev, struct hci_conn *conn,
-                               u8 own_addr_type)
+static int hci_le_ext_create_conn_sync(struct hci_dev *hdev,
+                                      struct hci_conn *conn, u8 own_addr_type)
 {
        struct hci_cp_le_ext_create_conn *cp;
        struct hci_cp_le_ext_conn_param *p;