Skip to content

Commit 7a0c187

Browse files
rfvirgilbebarino
authored andcommitted
clk: test: Forward-declare struct of_phandle_args in kunit/clk.h
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: a82fcb1 ("clk: test: Add test managed of_clk_add_hw_provider()") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 6064cfa commit 7a0c187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/kunit/clk.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ struct clk;
66
struct clk_hw;
77
struct device;
88
struct device_node;
9+
struct of_phandle_args;
910
struct kunit;
1011

1112
struct clk *

0 commit comments

Comments
 (0)