On Fri, Jul 20, 2018 at 04:39:39PM +0100, Andre Przywara wrote: > exit() and abort() are functions that never return, and (at least) > GCC has an attribute to flag those functions accordingly. This allows > the compiler to do further optimizations and to omit various warnings > about uninitialized variables, for instance. > Since the actual "play-dead" function is in (inline) assembly, the > compiler does not recognize its fatal nature, so help it with the > __builtin_unreachable() hint. > Flag the prototypes of our fatal functions accordingly. > > Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx> > --- > lib/arm/io.c | 1 + > lib/libcflat.h | 7 ++++--- > lib/powerpc/io.c | 1 + > lib/x86/io.c | 1 + > 4 files changed, 7 insertions(+), 3 deletions(-) > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>