summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2025-03-27 12:52:14 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 15:39:50 +0200
commit3f30dc4fa6f777f0938eade438a065cd6f12de17 (patch)
tree7a9da6b37921877c6c7cf23ac18a52bccf9f5410
parent1b69a5299f28ce8e6afa37c3690dbc14c3a1f53f (diff)
clk: test: Forward-declare struct of_phandle_args in kunit/clk.h
[ Upstream commit 7a0c1872ee7db25d711ac29a55f36844a7108308 ] Add a forward-declare of struct of_phandle_args to prevent the compiler warning: ../include/kunit/clk.h:29:63: warning: ‘struct of_phandle_args’ declared inside parameter list will not be visible outside of this definition or declaration struct clk_hw *(*get)(struct of_phandle_args *clkspec, void *data), Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20250327125214.82598-1-rf@opensource.cirrus.com Fixes: a82fcb16d977 ("clk: test: Add test managed of_clk_add_hw_provider()") Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--include/kunit/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kunit/clk.h b/include/kunit/clk.h
index 0afae7688157..f226044cc78d 100644
--- a/include/kunit/clk.h
+++ b/include/kunit/clk.h
@@ -6,6 +6,7 @@ struct clk;
struct clk_hw;
struct device;
struct device_node;
+struct of_phandle_args;
struct kunit;
struct clk *