Re: [PATCH][next] ftrace: Fix -Wcast-function-type warnings on powerpc64

From: Steven Rostedt
Date: Tue Oct 05 2021 - 11:17:19 EST


On Tue, 5 Oct 2021 00:39:22 -0500
"Gustavo A. R. Silva" <gustavoars@xxxxxxxxxx> wrote:

> In order to make sure new function cast mismatches are not introduced
> in the kernel (to avoid tripping CFI checking), the kernel should be
> globally built with -Wcast-function-type.
>
> So, fix the following -Wcast-function-type warnings on powerpc64
> (ppc64_defconfig):

I think I'll go back and add my linker magic.

https://lore.kernel.org/all/20200617165616.52241bde@xxxxxxxxxxxxxxxx/

I'll clean it up a bit too. I'll have a patch in a bit.

-- Steve