Bluetooth: hci_bcm: Fix "implicit declaration"
Subsystems (2)
PATCH 1/1 Bluetooth: hci_bcm: Fix "implicit declaration"
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 <[email protected]>
Signed-off-by Frederic Danis <[email protected]>
--- drivers/bluetooth/hci_bcm.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/bluetooth/hci_bcm.c +7 -0
@@ -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) {
Signature · 1 line
1.9.1
Marcel Holtmann
maintainerHi Fred,
Quoted 10 lines
The kbuild test robot reported implicit declaration of function '
acpi_dev_get_resources'.Surround ACPI function by
CONFIG_ACPItest.Reported-by kbuild test robot <[email protected]>Signed-off-by Frederic Danis <[email protected]>---
drivers/bluetooth/hci_bcm.c| 7 +++++++1 file changed, 7 insertions(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel