[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <490CBF52-4D9E-4807-9E26-BDA45461F111@holtmann.org>
Date: Fri, 27 Sep 2019 08:43:12 +0200
From: Marcel Holtmann <marcel@...tmann.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Johan Hedberg <johan.hedberg@...il.com>,
Alex Lu <alex_lu@...lsil.com.cn>,
Matthias Kaehlcke <mka@...omium.org>,
Rajat Jain <rajatja@...gle.com>,
Raghuram Hegde <raghuram.hegde@...el.com>,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Bluetooth: btusb: avoid unused function warning
Hi Arnd,
> The btusb_rtl_cmd_timeout() function is used inside of an
> ifdef, leading to a warning when this part is hidden
> from the compiler:
>
> drivers/bluetooth/btusb.c:530:13: error: unused function 'btusb_rtl_cmd_timeout' [-Werror,-Wunused-function]
>
> Use an IS_ENABLED() check instead so the compiler can see
> the code and then discard it silently.
>
> Fixes: d7ef0d1e3968 ("Bluetooth: btusb: Use cmd_timeout to reset Realtek device")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/bluetooth/btusb.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
Powered by blists - more mailing lists