From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8A4CC433FF for ; Mon, 12 Aug 2019 17:11:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86888206C1 for ; Mon, 12 Aug 2019 17:11:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbfHLRK4 (ORCPT ); Mon, 12 Aug 2019 13:10:56 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:36092 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbfHLRKz (ORCPT ); Mon, 12 Aug 2019 13:10:55 -0400 Received: from marcel-macbook.fritz.box (p4FEFC580.dip0.t-ipconnect.de [79.239.197.128]) by mail.holtmann.org (Postfix) with ESMTPSA id 7D922CECF5; Mon, 12 Aug 2019 19:19:35 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH -next] Bluetooth: hci_bcm: Fix -Wunused-const-variable warnings From: Marcel Holtmann In-Reply-To: <20190812062211.69984-1-yuehaibing@huawei.com> Date: Mon, 12 Aug 2019 19:10:53 +0200 Cc: Johan Hedberg , linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20190812062211.69984-1-yuehaibing@huawei.com> To: YueHaibing X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 > Signed-off-by: YueHaibing > --- > drivers/bluetooth/hci_bcm.c | 30 +++++++++++++++--------------- > 1 file changed, 15 insertions(+), 15 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel