clk: ingenic: Mark ingenic_tcu_of_match as __maybe_unused
Subsystems (2)
Stephen Boyd
maintainerPATCH 1/1 clk: ingenic: Mark ingenic_tcu_of_match as __maybe_unused
This device id table is passed to of_match_node() later on in probe, but on CONFIG_OF=n builds of_match_node() doesn't do anything with the arguments. Lets just mark the table unused so that the compiler doesn't complain about this.
drivers/clk/ingenic/tcu.c:326:34: warning: unused variable 'ingenic_tcu_of_match' [-Wunused-const-variable] static const struct of_device_id ingenic_tcu_of_match[] __initconst = {
^
1 warning generated.
--- drivers/clk/ingenic/tcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ingenic/tcu.c +1 -1
@@ -323,7 +323,7 @@ static const struct ingenic_soc_info x1000_soc_info = { .has_tcu_clk = false, }; -static const struct of_device_id ingenic_tcu_of_match[]__initconst = { +static const struct of_device_id __maybe_unused ingenic_tcu_of_match[]__initconst = { { .compatible ="ingenic,jz4740-tcu" , .data = &jz4740_soc_info, }, { .compatible ="ingenic,jz4725b-tcu" , .data = &jz4725b_soc_info, }, { .compatible ="ingenic,jz4770-tcu" , .data = &jz4770_soc_info, },
Signature · 1 line
Sent by a computer, using git, on the internet
Quoting Stephen Boyd (2020-05-28 16:38:37)
Quoted 5 lines
This device id table is passed to
of_match_node()later on in probe, but onCONFIG_OF=nbuildsof_match_node()doesn't do anything with the arguments. Lets just mark the table unused so that the compiler doesn't complain about this.
Quoted 8 lines
drivers/clk/ingenic/tcu.c:326:34: warning: unused variable 'ingenic_tcu_of_match' [-Wunused-const-variable] static const structof_device_idingenic_tcu_of_match[]__initconst= {
^
1 warning generated.Reported-by kbuild test robot <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
Applied to clk-next