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

clk: scpi: mark scpi_clk_match as maybe unused

The scpi_clk_match (struct of_device_id) is referenced only with
CONFIG_OF builds thus mark it as __maybe_unused:

drivers/clk/clk-scpi.c:132:34: warning:
‘scpi_clk_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201103162435.13689-8-krzk@kernel.org
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Stephen Boyd
975d25cb 967069aa

+1 -1
+1 -1
drivers/clk/clk-scpi.c
··· 129 129 .set_rate = scpi_dvfs_set_rate, 130 130 }; 131 131 132 - static const struct of_device_id scpi_clk_match[] = { 132 + static const struct of_device_id scpi_clk_match[] __maybe_unused = { 133 133 { .compatible = "arm,scpi-dvfs-clocks", .data = &scpi_dvfs_ops, }, 134 134 { .compatible = "arm,scpi-variable-clocks", .data = &scpi_clk_ops, }, 135 135 {}