Re: [PATCH v5 11/11] clk: Add KUnit tests for clks registered with struct clk_parent_data

Stephen Boyd
2024-07-02T22:34:09Z

Quoting Stephen Boyd (2024-07-02 15:25:47)
> Quoting David Gow (2024-06-13 00:56:08)
> >
> > We should use an action wrapper here (KUNIT_DEFINE_ACTION_WRAPPER()),
> > as casting function pointers to kunit_action_t* breaks control-flow
> > integrity.
>
> Got it, thanks. Maybe there should be an of_node_put_kunit_exit() helper that
> does that and can be used anywhere.
>

Heh I already have that with of_node_put_kunit(). I could add exit to it
for clarity? I don't really care either way.