Skip to content

Commit

Permalink
Bluetooth: btintel: Fix compiler warning for multi_v7_defconfig config
Browse files Browse the repository at this point in the history
Fix the following compiler warning reported for ARCH=arm
multi_v7_defconfig.

In file included from drivers/bluetooth/hci_ldisc.c:34:
drivers/bluetooth/btintel.h:373:13: warning: 'btintel_hw_error' defined
but not used [-Wunused-function]
  373 | static void btintel_hw_error(struct hci_dev *hdev, u8 code)
      |             ^~~~~~~~~~~~~~~~

cc: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 67d4dba ("Bluetooth: btintel: Export few static functions")
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
  • Loading branch information
Kiran K authored and Luiz Augusto von Dentz committed May 14, 2024
1 parent a18d28f commit 36b1c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/btintel.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static inline int btintel_shutdown_combined(struct hci_dev *hdev)
return -ENODEV;
}

static void btintel_hw_error(struct hci_dev *hdev, u8 code)
static inline void btintel_hw_error(struct hci_dev *hdev, u8 code)
{
}
#endif

0 comments on commit 36b1c9c

Please sign in to comment.