]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Apr 2026 13:19:27 +0000 (09:19 -0400)
commit81f971c6abec59240e2bcfc38756bda8172fa788
treebc9567d810c7309cda6ca82d96d48b6b1172f027
parent751b06a28b3fce0ec7a1d0df357e329dd58ad7c3
Bluetooth: btmtk: hide unused btmtk_mt6639_devs[] array

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>
drivers/bluetooth/btmtk.c