Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1205946 > unrolled thread
| Started by | Frederic Danis <frederic.danis@linux.intel.com> |
|---|---|
| First post | 2015-08-12 12:50 +0200 |
| Last post | 2015-08-12 16:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" Frederic Danis <frederic.danis@linux.intel.com> - 2015-08-12 12:50 +0200
Re: [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" Marcel Holtmann <marcel@holtmann.org> - 2015-08-12 16:50 +0200
| From | Frederic Danis <frederic.danis@linux.intel.com> |
|---|---|
| Date | 2015-08-12 12:50 +0200 |
| Subject | [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" |
| Message-ID | <pWBLA-1Xg-27@gated-at.bofh.it> |
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
--
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]
| From | Marcel Holtmann <marcel@holtmann.org> |
|---|---|
| Date | 2015-08-12 16:50 +0200 |
| Message-ID | <pWFvP-7mW-9@gated-at.bofh.it> |
| In reply to | #1205946 |
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 -- 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