Re: [PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-26 Thread Marcel Holtmann
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 inste

Re: [PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-19 Thread Marcel Holtmann
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_ENABL

Re: [PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-19 Thread Arnd Bergmann
On Thu, Sep 19, 2019 at 9:32 AM Marcel Holtmann wrote: > > > 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' [-Wer

Re: [PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-19 Thread Marcel Holtmann
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 inste

[PATCH] Bluetooth: btusb: avoid unused function warning

2019-09-18 Thread Arnd Bergmann
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