Re: [PATCH][next] ftrace: Fix -Wcast-function-type warnings on powerpc64
From: Gustavo A. R. Silva
Date: Tue Oct 05 2021 - 12:14:12 EST
On Tue, Oct 05, 2021 at 11:17:14AM -0400, Steven Rostedt wrote:
> 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.
Awesome. :)
Thanks
--
Gustavo