Skip to content

Commit 139f697

Browse files
krzkKalle Valo
authored andcommitted
wifi: mwifiex: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/net/wireless/marvell/mwifiex/sdio.c:498:34: error: ‘mwifiex_sdio_of_match_table’ defined but not used [-Werror=unused-const-variable=] drivers/net/wireless/marvell/mwifiex/pcie.c:175:34: error: ‘mwifiex_pcie_of_match_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5683e14 commit 139f697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/wireless/marvell/mwifiex/pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static const struct mwifiex_pcie_device mwifiex_pcie8997 = {
172172
.can_ext_scan = true,
173173
};
174174

175-
static const struct of_device_id mwifiex_pcie_of_match_table[] = {
175+
static const struct of_device_id mwifiex_pcie_of_match_table[] __maybe_unused = {
176176
{ .compatible = "pci11ab,2b42" },
177177
{ .compatible = "pci1b4b,2b42" },
178178
{ }

drivers/net/wireless/marvell/mwifiex/sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static struct memory_type_mapping mem_type_mapping_tbl[] = {
495495
{"EXTLAST", NULL, 0, 0xFE},
496496
};
497497

498-
static const struct of_device_id mwifiex_sdio_of_match_table[] = {
498+
static const struct of_device_id mwifiex_sdio_of_match_table[] __maybe_unused = {
499499
{ .compatible = "marvell,sd8787" },
500500
{ .compatible = "marvell,sd8897" },
501501
{ .compatible = "marvell,sd8978" },

0 commit comments

Comments
 (0)