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@xxxxxxxxxxxxxxxx> Signed-off-by: Kiran K <kiran.k@xxxxxxxxx> --- drivers/bluetooth/btintel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h index 5d4685b5c1fa..b5fea735e260 100644 --- a/drivers/bluetooth/btintel.h +++ b/drivers/bluetooth/btintel.h @@ -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 -- 2.40.1