Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1218580 > unrolled thread

[PATCH] Bluetooth: btintel: fix warning

Started byVincent Stehlé <vincent.stehle@laposte.net>
First post2015-09-03 23:10 +0200
Last post2015-09-04 17:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Bluetooth: btintel: fix warning Vincent Stehlé <vincent.stehle@laposte.net> - 2015-09-03 23:10 +0200
    Re: [PATCH] Bluetooth: btintel: fix warning Marcel Holtmann <marcel@holtmann.org> - 2015-09-04 17:30 +0200

#1218580 — [PATCH] Bluetooth: btintel: fix warning

FromVincent Stehlé <vincent.stehle@laposte.net>
Date2015-09-03 23:10 +0200
Subject[PATCH] Bluetooth: btintel: fix warning
Message-ID<q4JVF-6Lq-33@gated-at.bofh.it>
Fix compilation the following compilation warning, which happens when
CONFIG_BT_INTEL is not set:

  drivers/bluetooth/btintel.h:98:13: warning: ‘btintel_version_info’
  defined but not used [-Wunused-function]
   static void btintel_version_info(struct hci_dev *hdev,
                                    struct intel_version *ver)
               ^

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: trivial@kernel.org
---


Hi,

This warning can be seen with e.g. ARM imx_v6_v7_defconfig.

Best regards,

V. 


 drivers/bluetooth/btintel.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btintel.h b/drivers/bluetooth/btintel.h
index b278d14..a49c8db 100644
--- a/drivers/bluetooth/btintel.h
+++ b/drivers/bluetooth/btintel.h
@@ -95,7 +95,8 @@ static inline void btintel_hw_error(struct hci_dev *hdev, u8 code)
 {
 }
 
-static void btintel_version_info(struct hci_dev *hdev, struct intel_version *ver)
+static inline void btintel_version_info(struct hci_dev *hdev,
+					struct intel_version *ver)
 {
 }
 
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1219119

FromMarcel Holtmann <marcel@holtmann.org>
Date2015-09-04 17:30 +0200
Message-ID<q516c-61Z-47@gated-at.bofh.it>
In reply to#1218580
Hi Vincent,

> Fix compilation the following compilation warning, which happens when
> CONFIG_BT_INTEL is not set:
> 
>  drivers/bluetooth/btintel.h:98:13: warning: ‘btintel_version_info’
>  defined but not used [-Wunused-function]
>   static void btintel_version_info(struct hci_dev *hdev,
>                                    struct intel_version *ver)
>               ^
> 
> Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
> Cc: Marcel Holtmann <marcel@holtmann.org>
> Cc: trivial@kernel.org
> ---
> 
> 
> Hi,
> 
> This warning can be seen with e.g. ARM imx_v6_v7_defconfig.
> 
> Best regards,
> 
> V. 
> 
> 
> drivers/bluetooth/btintel.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web