linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration"
@ 2015-08-12 10:46 Frederic Danis
  2015-08-12 14:43 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Frederic Danis @ 2015-08-12 10:46 UTC (permalink / raw)
  To: linux-bluetooth, sfr, gustavo; +Cc: linux-next, linux-kernel, marcel

The kbuild test robot reported implicit declaration of function
'acpi_dev_get_resources'.

Surround ACPI function by CONFIG_ACPI test.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
---
 drivers/bluetooth/hci_bcm.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c
index cb7fe83..2bb0940 100644
--- a/drivers/bluetooth/hci_bcm.c
+++ b/drivers/bluetooth/hci_bcm.c
@@ -388,6 +388,7 @@ static const struct acpi_gpio_mapping acpi_bcm_default_gpios[] = {
 	{ },
 };
 
+#ifdef CONFIG_ACPI
 static int bcm_resource(struct acpi_resource *ares, void *data)
 {
 	struct bcm_device *dev = data;
@@ -459,6 +460,12 @@ static int bcm_acpi_probe(struct bcm_device *dev)
 
 	return 0;
 }
+#else
+static int bcm_acpi_probe(struct bcm_device *dev)
+{
+	return -EINVAL;
+}
+#endif /* CONFIG_ACPI */
 
 static int bcm_probe(struct platform_device *pdev)
 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration"
  2015-08-12 10:46 [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" Frederic Danis
@ 2015-08-12 14:43 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2015-08-12 14:43 UTC (permalink / raw)
  To: Frederic Danis
  Cc: linux-bluetooth, sfr, Gustavo F. Padovan, linux-next, linux-kernel

Hi Fred,

> The kbuild test robot reported implicit declaration of function
> 'acpi_dev_get_resources'.
> 
> Surround ACPI function by CONFIG_ACPI test.
> 
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
> ---
> drivers/bluetooth/hci_bcm.c | 7 +++++++
> 1 file changed, 7 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-12 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-12 10:46 [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" Frederic Danis
2015-08-12 14:43 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).