Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934409AbbHLKqJ (ORCPT ); Wed, 12 Aug 2015 06:46:09 -0400 Received: from mga11.intel.com ([192.55.52.93]:60488 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933138AbbHLKqG (ORCPT ); Wed, 12 Aug 2015 06:46:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,660,1432623600"; d="scan'208";a="747059651" From: Frederic Danis To: linux-bluetooth@vger.kernel.org, sfr@canb.auug.org.au, gustavo@padovan.org Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org Subject: [PATCH] Bluetooth: hci_bcm: Fix "implicit declaration" Date: Wed, 12 Aug 2015 12:46:01 +0200 Message-Id: <1439376361-16647-1-git-send-email-frederic.danis@linux.intel.com> X-Mailer: git-send-email 1.9.1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 44 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 Signed-off-by: Frederic Danis --- 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/