[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <159070963068.69627.14874637406897919086@swboyd.mtv.corp.google.com>
Date: Thu, 28 May 2020 16:47:10 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
kbuild test robot <lkp@...el.com>
Subject: Re: [PATCH] clk: ingenic: Mark ingenic_tcu_of_match as __maybe_unused
Quoting Stephen Boyd (2020-05-28 16:38:37)
> 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@...el.com>
> Signed-off-by: Stephen Boyd <sboyd@...nel.org>
> ---
Applied to clk-next
Powered by blists - more mailing lists