Re: [PATCH -next] Bluetooth: hci_bcm: Fix -Wunused-const-variable warnings

From: Marcel Holtmann
Date: Mon Aug 12 2019 - 13:10:58 EST


Hi Yue,

> If CONFIG_ACPI is not set, gcc warn this:
>
> drivers/bluetooth/hci_bcm.c:831:39: warning:
> acpi_bcm_int_last_gpios defined but not used [-Wunused-const-variable=]
> drivers/bluetooth/hci_bcm.c:838:39: warning:
> acpi_bcm_int_first_gpios defined but not used [-Wunused-const-variable=]
>
> move them to #ifdef CONFIG_ACPI block.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> drivers/bluetooth/hci_bcm.c | 30 +++++++++++++++---------------
> 1 file changed, 15 insertions(+), 15 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel