Re: [PATCH v2 1/3] compiler_types: Introduce the Clang __preserve_most function attribute

From: Steven Rostedt
Date: Mon Aug 07 2023 - 22:17:15 EST


On Mon, 7 Aug 2023 14:31:37 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> > that this is not a compilation for a module. Otherwise modules built
> > with a compiler with __preserve_most__ attribute support are
> > incompatible with kernels built with a compiler without that attribute.
>
> We have a metric ton of options that can break module ABI. If you're
> daft enough to not build with the exact same compiler and .config you
> get to keep the pieces.

I believe there's enough checks for various compiler options in order to
enable features during the build that trying to load a module built with
another compiler is pretty much guaranteed to fail today.

-- Steve