Re: [RFC PATCH v2 08/21] psci: Fix the function type for psci_initcall_t

From: Sami Tolvanen
Date: Mon May 16 2022 - 11:45:27 EST


On Sat, May 14, 2022 at 2:50 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> On Fri, May 13, 2022 at 01:21:46PM -0700, Sami Tolvanen wrote:
> > Functions called through a psci_initcall_t pointer all have
> > non-const arguments. Fix the type definition to avoid tripping
> > indirect call checks with CFI_CLANG.
> >
> > Reported-by: Mark Rutland <mark.rutland@xxxxxxx>
> > Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>
>
> This could land separately from this series, too, yes?

Correct.

Sami