https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Isn't cpumask_clear_cpu using __always_inline macro which expands to inline __attribute__((__always_inline__)) and so should be always inlined? Anyway, if you want to inline a particular function at some specific spot in some section, perhaps add a __flatten __always_inline wrapper around it perhaps also with __init section? With LTO flatten attribute will really try to inline everything that isn't explicitly noinline and is called from it into it.