]> git.hungrycats.org Git - linux/commit
Bluetooth: btmtk: hide unused btmtk_mt6639_devs[] array
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Apr 2026 14:11:15 +0000 (16:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2026 11:36:18 +0000 (13:36 +0200)
commit9289c94fcfe04f374206e69994ce2e45ca258fb8
tree206f5c8cb2639beab6a283a8a09b681832cfcb99
parent2151b2bcf6fcec52665f606eed20da068447f0b7
Bluetooth: btmtk: hide unused btmtk_mt6639_devs[] array

[ Upstream commit 81f971c6abec59240e2bcfc38756bda8172fa788 ]

When USB support is disabled, the array is not referenced anywhere,
causing a warning:

drivers/bluetooth/btmtk.c:35:3: error: 'btmtk_mt6639_devs' defined but not used [-Werror=unused-const-variable=]
   35 | } btmtk_mt6639_devs[] = {
      |   ^~~~~~~~~~~~~~~~~

Move it into the #ifdef block.

Fixes: 28b7c5a6db74 ("Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btmtk.c