Thread (3 messages) flat view 3 messages, 2 authors, 1d ago

Re: [PATCH] powerpc/boot: Mark exit() and ps3_exit() as __noreturn

From: Thorsten Blum <thorsten.blum@linux.dev>
Date: 2026-08-07 19:55:16
Also in: lkml

On Fri, Aug 07, 2026 at 05:32:44PM +0200, Christophe Leroy (CS GROUP) wrote:
Le 07/08/2026 à 17:23, Thorsten Blum a écrit :
quoted
Since neither exit() nor ps3_exit() return, annotate both functions with
the __noreturn attribute to improve compiler optimizations.
Is it worth spending time optimising a boot sequence that will run only once
at startup ?

Do you have any figure on the improvement ?
No, and I haven't checked its impact. Maybe compilers can already infer
that both functions never return and optimize them accordingly. Besides
potential compiler optimizations, it also serves as documentation.

I can reword the commit message to clarify that, or drop the patch.

Thanks,
Thorsten
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help