clk: test: Forward-declare struct of_phandle_args in kunit/clk.h
Subsystems (3)
PATCH 1/1 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),
--- include/kunit/clk.h | 1 + 1 file changed, 1 insertion(+)
include/kunit/clk.h +1 -0
@@ -6,6 +6,7 @@ struct clk;struct clk_hw ;struct device ;struct device_node ; +struct of_phandle_args ;struct kunit ; struct clk *
Signature · 1 line
2.43.0
Quoting Richard Fitzgerald (2025-03-27 05:52:14)
Quoted 10 lines
Add a forward-declare of struct
of_phandle_argsto 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
structclk_hw*(*get)(structof_phandle_args*clkspec, void *data),Signed-off-by Richard Fitzgerald <[email protected]>---
Applied to clk-next