[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <487dda47-ee5e-4835-ba63-05c0ce7ac6fc@collabora.com>
Date: Mon, 22 Jul 2024 13:05:49 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Arnd Bergmann <arnd@...nel.org>, Marcel Holtmann <marcel@...tmann.org>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
Matthias Brugger <matthias.bgg@...il.com>, Chris Lu <chris.lu@...iatek.com>
Cc: Arnd Bergmann <arnd@...db.de>, Sean Wang <sean.wang@...iatek.com>,
Jing Cai <jing.cai@...iatek.com>, Takashi Iwai <tiwai@...e.de>,
Peter Tsao <peter.tsao@...iatek.com>, linux-bluetooth@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH 2/2] Bluetooth: btmtk: remove #ifdef around declarations
Il 22/07/24 11:27, Arnd Bergmann ha scritto:
> From: Arnd Bergmann <arnd@...db.de>
>
> The caller of these functions in btusb.c is guarded with an
> if(IS_ENABLED()) style check, so dead code is left out, but the
> declarations are still needed at compile time:
>
> drivers/bluetooth/btusb.c: In function 'btusb_mtk_reset':
> drivers/bluetooth/btusb.c:2705:15: error: implicit declaration of function 'btmtk_usb_subsys_reset' [-Wimplicit-function-declaration]
> 2705 | err = btmtk_usb_subsys_reset(hdev, btmtk_data->dev_id);
> | ^~~~~~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btusb.c: In function 'btusb_send_frame_mtk':
> drivers/bluetooth/btusb.c:2720:23: error: implicit declaration of function 'alloc_mtk_intr_urb' [-Wimplicit-function-declaration]
> 2720 | urb = alloc_mtk_intr_urb(hdev, skb, btusb_tx_complete);
> | ^~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btusb.c:2720:21: error: assignment to 'struct urb *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
> 2720 | urb = alloc_mtk_intr_urb(hdev, skb, btusb_tx_complete);
> | ^
>
> Fixes: 52828ea60dfd ("Bluetooth: btmtk: Fix btmtk.c undefined reference build error")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists