[PATCH bluetooth-next] Bluetooth: btmtk: Mark all stub functions as inline
patchwork-bot+bluetooth at kernel.org
patchwork-bot+bluetooth at kernel.org
Sun Jul 14 18:30:29 PDT 2024
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz at intel.com>:
On Wed, 10 Jul 2024 10:56:24 -0700 you wrote:
> Several recent patches added static stubs to btmtk.h without the inline
> keyword, which causes instances of -Wunused-function when those stubs
> are not used anywhere in a file that includes the header:
>
> In file included from drivers/bluetooth/btusb.c:28:
> drivers/bluetooth/btmtk.h:254:13: warning: 'btmtk_fw_get_filename' defined but not used [-Wunused-function]
> 254 | static void btmtk_fw_get_filename(char *buf, size_t size, u32 dev_id,
> | ^~~~~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btmtk.h:249:12: warning: 'btmtk_process_coredump' defined but not used [-Wunused-function]
> 249 | static int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
> | ^~~~~~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btmtk.h:243:12: warning: 'btmtk_register_coredump' defined but not used [-Wunused-function]
> 243 | static int btmtk_register_coredump(struct hci_dev *hdev, const char *name,
> | ^~~~~~~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btmtk.h:233:12: warning: 'btmtk_setup_firmware' defined but not used [-Wunused-function]
> 233 | static int btmtk_setup_firmware(struct hci_dev *hdev, const char *fwname,
> | ^~~~~~~~~~~~~~~~~~~~
> drivers/bluetooth/btmtk.h:227:12: warning: 'btmtk_setup_firmware_79xx' defined but not used [-Wunused-function]
> 227 | static int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> [...]
Here is the summary with links:
- [bluetooth-next] Bluetooth: btmtk: Mark all stub functions as inline
https://git.kernel.org/bluetooth/bluetooth-next/c/cebba8aa58ab
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linux-mediatek
mailing list