Re: [PATCH RFC 8/8] arm64: ftrace: Allow CALL_OPS on kCFI kernels built with Rust

From: Miguel Ojeda

Date: Sun Sep 06 2026 - 12:57:34 EST


On Fri, Sep 4, 2026 at 3:20 AM Jose Fernandez (Anthropic)
<jose.fernandez@xxxxxxxxx> wrote:
>
> +# bindgen generates no code, and its libclang may predate the section
> +# argument of -fpatchable-function-entry that a kCFI kernel with CALL_OPS
> +# passes on arm64.
> +bindgen_c_flags = $(filter-out -fpatchable-function-entry=%,$(c_flags))

In general, one should be using the same version (we warn otherwise
early in the build), but yeah, it is just a warning for now and it is
nice to try to remain a bit flexible.

Now, if we are going to filter this out for Clang, should we just
filter it out for GCC too? i.e. outside the `ifdef`?

By the way, "generates no code" sounds a bit strange, since `bindgen`
generates source code...

Thanks!

Cheers,
Miguel