https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445
--- Comment #26 from Christophe Leroy <christophe.leroy at csgroup dot eu> --- In reality it is not perfect with GCC 9.2, but that's better, only two instances are unused. [root@po17688vm linux-powerpc]# ppc-linux-objdump -d vmlinux | grep get_order c00c0470 <get_order>: c013e238 <get_order>: c0225f68 <get_order>: c041ebfc: 4b ca 18 75 bl c00c0470 <get_order> c042d34c: 4b c9 31 25 bl c00c0470 <get_order> In the few places where get_order() remains with GCC 9.2, I get the following warning: warning: inlining failed in call to 'get_order': call is unlikely and code size would grow [-Winline]