[PATCH] [v2] iommu, debugobjects: avoid gcc-16.1 section mismatch warnings
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Wed May 13 08:48:20 PDT 2026
On Wed, May 13, 2026 at 4:54 PM Arnd Bergmann <arnd at kernel.org> wrote:
>
> With some more experimenting, I found that marking these functions as
> __attribute__((noipa)) is both logical and reliable.
>
> In order to keep the syntax readable, add a custom macro for this in
> include/linux/compiler_attributes.h next to other related macros and
> use it to annotate both files.
Acked-by: Miguel Ojeda <ojeda at kernel.org>
I double-checked that GCC 8.1 implemented the attribute in commit
036ea39917b0 ("attribs.c (decl_attributes): Imply noinline, noclone
and no_icf attributes for noipa attribute."), which also happens to be
our minimum in Linux; and that Clang indeed does not seem to support
it (not even a mention of it in their repository).
If you don't mind, please add underscores (i.e. `((__noipa__))`) and
place it after `__noinline__` to keep it sorted (the file is meant to
be sorted by actual attribute name, though some entries were added
that break that, but I will clean that and a couple other things up at
some point).
Thanks!
Cheers,
Miguel
More information about the linux-arm-kernel
mailing list