Skip to contentSkip to conversation

Bluetooth: btintel: remove extraneous semicolon

PATCH In review Arnd Bergmann 2 participants 3 messages Jan 26, 2018 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: btintel: remove extraneous semicolon

The newly added btintel_download_firmware() dummy helper definition is incorrect, causing a build error when CONFIG_BT_INTEL is disabled:

In file included from drivers/bluetooth/hci_ldisc.c:49:0:
drivers/bluetooth/btintel.h:196:1: error: expected identifier or '(' before '{' token drivers/bluetooth/btintel.h:193:19: error: 'btintel_download_firmware' declared 'static' but never defined [-Werror=unused-function]

Removing the semicolon makes it work again.

Fixes 0bd4ded3287d ("Bluetooth: btintel: Create common function for firmware download")
---
 drivers/bluetooth/btintel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel.h +1 -1
index 01728e212267..41c642cc523f 100644
@@ -192,7 +192,7 @@ static inline int btintel_read_boot_params(struct hci_dev *hdev,
 
 static inline int btintel_download_firmware(struct hci_dev *dev,
 					    const struct firmware *fw,
-					    u32 *boot_param);
+					    u32 *boot_param)
 {
 	return -EOPNOTSUPP;
 }
Signature · 1 line
2.9.0
maintainer
#1 lore raw

Hi Arnd,

Quoted 20 lines

The newly added btintel_download_firmware() dummy helper definition is incorrect, causing a build error when CONFIG_BT_INTEL is disabled:

In file included from drivers/bluetooth/hci_ldisc.c:49:0:
drivers/bluetooth/btintel.h:196:1: error: expected identifier or '(' before '{' token drivers/bluetooth/btintel.h:193:19: error: 'btintel_download_firmware' declared 'static' but never defined [-Werror=unused-function]

Removing the semicolon makes it work again.

Fixes 0bd4ded3287d ("Bluetooth: btintel: Create common function for firmware download")

---
drivers/bluetooth/btintel.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel.h +0 -0
index 01728e212267..41c642cc523f 100644

drivers/bluetooth/btintel.h static inline int btintel_read_boot_params(struct hci_dev *hdev, · line 198

Quoted 8 lines
drivers/bluetooth/btintel.h +1 -1
@@ -192,7 +192,7 @@ static inline int btintel_read_boot_params(struct hci_dev *hdev,
 
 static inline int btintel_download_firmware(struct hci_dev *dev,
 					    const struct firmware *fw,
-					    u32 *boot_param);
+					    u32 *boot_param)
 {
 	return -EOPNOTSUPP;
 }

didn’t I fix this before sending the pull request? Can you check against net-next tree that this is still an issue?

Regards

Marcel

#2 lore raw

On Fri, Jan 26, 2018 at 4:22 PM, Marcel Holtmann <[email protected]> wrot= e:

Quoted 7 lines

Hi Arnd,

Quoted 5 lines

The newly added btintel_download_firmware() dummy helper definition is incorrect, causing a build error when CONFIG_BT_INTEL is disabled:

In file included from drivers/bluetooth/hci_ldisc.c:49:0:
drivers/bluetooth/btintel.h:196:1: error: expected identifier or '(' bef=

ore '{' token

Quoted 1 line
Quoted 1 line

drivers/bluetooth/btintel.h:193:19: error: 'btintel_download_firmware' d=

eclared 'static' but never defined [-Werror=3Dunused-function]

Quoted 4 lines
Quoted 4 lines

Removing the semicolon makes it work again.

Fixes 0bd4ded3287d ("Bluetooth: btintel: Create common function for fir=

mware download")

Quoted 10 lines

drivers/bluetooth/btintel.h static inline int btintel_read_boot_params(struct hc=

Quoted 10 lines

---
drivers/bluetooth/btintel.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel.h +0 -0
index 01728e212267..41c642cc523f 100644
@@ -192,7 +192,7 @@ static inline int btintel_read_boot_params(struct hc=

i_dev *hdev,

Quoted 10 lines

drivers/bluetooth/btintel.h static inline int btintel_read_boot_params(struct hci_dev *hdev, · line 198

Quoted 8 lines
drivers/bluetooth/btintel.h +1 -1
 static inline int btintel_download_firmware(struct hci_dev *dev,
                                          const struct firmware *fw,
-                                         u32 *boot_param);
+                                         u32 *boot_param)
 {
      return -EOPNOTSUPP;
 }

didn=E2=80=99t I fix this before sending the pull request? Can you check =

against

Quoted 1 line

net-next tree that this is still an issue?

It's fixed in net-next. I looked at linux-next, which apparently had an older version of the commit when Stephen pulled the tree into today's linux-next, through bluetooth-next.git#master.

Arnd