Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: btmtkuart: mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/bluetooth/btmtkuart.c:971:36: error: ‘mt7668_data’ defined
but not used [-Werror=unused-const-variable=]
drivers/bluetooth/btmtkuart.c:966:36: error: ‘mt7663_data’ defined
but not used [-Werror=unused-const-variable=]
drivers/bluetooth/btmtkuart.c:962:36: error: ‘mt7622_data’ defined
but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Krzysztof Kozlowski and committed by
Luiz Augusto von Dentz
a88ea43b 44fac8a2

+3 -3
+3 -3
drivers/bluetooth/btmtkuart.c
··· 959 959 hci_free_dev(hdev); 960 960 } 961 961 962 - static const struct btmtkuart_data mt7622_data = { 962 + static const struct btmtkuart_data mt7622_data __maybe_unused = { 963 963 .fwname = FIRMWARE_MT7622, 964 964 }; 965 965 966 - static const struct btmtkuart_data mt7663_data = { 966 + static const struct btmtkuart_data mt7663_data __maybe_unused = { 967 967 .flags = BTMTKUART_FLAG_STANDALONE_HW, 968 968 .fwname = FIRMWARE_MT7663, 969 969 }; 970 970 971 - static const struct btmtkuart_data mt7668_data = { 971 + static const struct btmtkuart_data mt7668_data __maybe_unused = { 972 972 .flags = BTMTKUART_FLAG_STANDALONE_HW, 973 973 .fwname = FIRMWARE_MT7668, 974 974 };