Otherwise GCC 4.2.4 complains that panic() marked noreturn does return.
Signed-off-by: Andreas Färber <andreas.faerber(a)web.de>
---
arch/ppc/qemu/kernel.h | 2 +-
arch/ppc/qemu/qemu.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ppc/qemu/kernel.h b/arch/ppc/qemu/kernel.h
index e8ae364..fe9be83 100644
--- a/arch/ppc/qemu/kernel.h
+++ b/arch/ppc/qemu/kernel.h
@@ -17,7 +17,7 @@
/* misc.c */
extern void fatal_error( const char *str );
-extern void exit( int status );
+extern void exit( int status ) __attribute__ ((noreturn));
/* start.S */
extern void flush_icache_range( char *start, char *stop );
diff --git a/arch/ppc/qemu/qemu.c b/arch/ppc/qemu/qemu.c
index 1f785ac..208669c 100644
--- a/arch/ppc/qemu/qemu.c
+++ b/arch/ppc/qemu/qemu.c
@@ -35,7 +35,7 @@ void
exit( int status __attribute__ ((unused)))
{
for (;;);
-} __attribute__ ((noreturn))
+}
void
fatal_error( const char *err )
--
1.7.3