Skip to content

Commit e480fe1

Browse files
committed
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. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 440d7a6 commit e480fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/ingenic/tcu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static const struct ingenic_soc_info x1000_soc_info = {
323323
.has_tcu_clk = false,
324324
};
325325

326-
static const struct of_device_id ingenic_tcu_of_match[] __initconst = {
326+
static const struct of_device_id __maybe_unused ingenic_tcu_of_match[] __initconst = {
327327
{ .compatible = "ingenic,jz4740-tcu", .data = &jz4740_soc_info, },
328328
{ .compatible = "ingenic,jz4725b-tcu", .data = &jz4725b_soc_info, },
329329
{ .compatible = "ingenic,jz4770-tcu", .data = &jz4770_soc_info, },

0 commit comments

Comments
 (0)