]> git.baikalelectronics.ru Git - kernel.git/commit
clk: ingenic: Mark ingenic_tcu_of_match as __maybe_unused
authorStephen Boyd <sboyd@kernel.org>
Thu, 28 May 2020 23:38:37 +0000 (16:38 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 28 May 2020 23:47:02 +0000 (16:47 -0700)
commitaa9dc13f121b41cd53d32b97e5a0c1556efe56ec
treef17c9e16ac5889c0a69139f71c51590e7628f28c
parent2c5f38e5306f2abced57001492e07e6bfe9ea9ea
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 <lkp@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200528233837.70269-1-sboyd@kernel.org
drivers/clk/ingenic/tcu.c