summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-11-20 19:23:02 +0300
committerVinod Koul <vkoul@kernel.org>2020-11-24 20:32:20 +0300
commit25d39b590dac0b8230cc3663c9f8f1a3a21831fd (patch)
treeaa8c635664df5bca0567f5ece92d5481607b4000
parent75fa2d4218c7df7added689dc941ba7b52519b2e (diff)
downloadlinux-25d39b590dac0b8230cc3663c9f8f1a3a21831fd.tar.xz
dmaengine: stm32: mark of_device_id table as maybe unused
The driver uses a second of_device_id table in the probe() function by passing it to of_match_node(). This code will be a no-op for compile testing (!CONFIG_OF on x86_64): drivers/dma/stm32-dmamux.c:171:34: warning: ‘stm32_stm32dma_master_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20201120162303.482126-5-krzk@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/dma/stm32-dmamux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c
index a10ccd964376..ef0d0555103d 100644
--- a/drivers/dma/stm32-dmamux.c
+++ b/drivers/dma/stm32-dmamux.c
@@ -168,7 +168,7 @@ error_chan_id:
return ERR_PTR(ret);
}
-static const struct of_device_id stm32_stm32dma_master_match[] = {
+static const struct of_device_id stm32_stm32dma_master_match[] __maybe_unused = {
{ .compatible = "st,stm32-dma", },
{},
};