* [PATCH] clk: test: Forward-declare struct of_phandle_args in kunit/clk.h
@ 2025-03-27 12:52 Richard Fitzgerald
2025-05-06 21:50 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Richard Fitzgerald @ 2025-03-27 12:52 UTC (permalink / raw)
To: brendan.higgins, davidgow, rmoar, sboyd
Cc: linux-kselftest, kunit-dev, linux-kernel, patches, linux-clk,
Richard Fitzgerald
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>
---
include/kunit/clk.h | 1 +
1 file changed, 1 insertion(+)
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 *
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: test: Forward-declare struct of_phandle_args in kunit/clk.h
2025-03-27 12:52 [PATCH] clk: test: Forward-declare struct of_phandle_args in kunit/clk.h Richard Fitzgerald
@ 2025-05-06 21:50 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2025-05-06 21:50 UTC (permalink / raw)
To: Richard Fitzgerald, brendan.higgins, davidgow, rmoar
Cc: linux-kselftest, kunit-dev, linux-kernel, patches, linux-clk,
Richard Fitzgerald
Quoting Richard Fitzgerald (2025-03-27 05:52:14)
> 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>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-06 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 12:52 [PATCH] clk: test: Forward-declare struct of_phandle_args in kunit/clk.h Richard Fitzgerald
2025-05-06 21:50 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox