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

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_qca: mark OF related data as maybe unused

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

drivers/bluetooth/hci_qca.c:1869:37: error: ‘qca_soc_data_wcn6750’
defined but not used [-Werror=unused-const-variable=]
drivers/bluetooth/hci_qca.c:1853:37: error: ‘qca_soc_data_wcn3998’
defined but not used [-Werror=unused-const-variable=]
drivers/bluetooth/hci_qca.c:1841:37: error: ‘qca_soc_data_wcn3991’
defined but not used [-Werror=unused-const-variable=]
drivers/bluetooth/hci_qca.c:1830:37: error: ‘qca_soc_data_wcn3990’
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
44fac8a2 04909d7b

+5 -5
+5 -5
drivers/bluetooth/hci_qca.c
··· 1827 1827 .dequeue = qca_dequeue, 1828 1828 }; 1829 1829 1830 - static const struct qca_device_data qca_soc_data_wcn3990 = { 1830 + static const struct qca_device_data qca_soc_data_wcn3990 __maybe_unused = { 1831 1831 .soc_type = QCA_WCN3990, 1832 1832 .vregs = (struct qca_vreg []) { 1833 1833 { "vddio", 15000 }, ··· 1838 1838 .num_vregs = 4, 1839 1839 }; 1840 1840 1841 - static const struct qca_device_data qca_soc_data_wcn3991 = { 1841 + static const struct qca_device_data qca_soc_data_wcn3991 __maybe_unused = { 1842 1842 .soc_type = QCA_WCN3991, 1843 1843 .vregs = (struct qca_vreg []) { 1844 1844 { "vddio", 15000 }, ··· 1850 1850 .capabilities = QCA_CAP_WIDEBAND_SPEECH | QCA_CAP_VALID_LE_STATES, 1851 1851 }; 1852 1852 1853 - static const struct qca_device_data qca_soc_data_wcn3998 = { 1853 + static const struct qca_device_data qca_soc_data_wcn3998 __maybe_unused = { 1854 1854 .soc_type = QCA_WCN3998, 1855 1855 .vregs = (struct qca_vreg []) { 1856 1856 { "vddio", 10000 }, ··· 1861 1861 .num_vregs = 4, 1862 1862 }; 1863 1863 1864 - static const struct qca_device_data qca_soc_data_qca6390 = { 1864 + static const struct qca_device_data qca_soc_data_qca6390 __maybe_unused = { 1865 1865 .soc_type = QCA_QCA6390, 1866 1866 .num_vregs = 0, 1867 1867 }; 1868 1868 1869 - static const struct qca_device_data qca_soc_data_wcn6750 = { 1869 + static const struct qca_device_data qca_soc_data_wcn6750 __maybe_unused = { 1870 1870 .soc_type = QCA_WCN6750, 1871 1871 .vregs = (struct qca_vreg []) { 1872 1872 { "vddio", 5000 },