make panic and hang __noreturn functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e11c07c339
commit
e723f79cb7
|
@ -161,7 +161,7 @@ void start_barebox (void)
|
|||
/* NOTREACHED - no way out of command loop except booting */
|
||||
}
|
||||
|
||||
void hang (void)
|
||||
void __noreturn hang (void)
|
||||
{
|
||||
puts ("### ERROR ### Please RESET the board ###\n");
|
||||
for (;;);
|
||||
|
|
|
@ -65,8 +65,8 @@ typedef void (interrupt_handler_t)(void *);
|
|||
*/
|
||||
void reginfo(void);
|
||||
|
||||
void hang (void) __attribute__ ((noreturn));
|
||||
void panic(const char *fmt, ...);
|
||||
void __noreturn hang (void);
|
||||
void __noreturn panic(const char *fmt, ...);
|
||||
|
||||
/* */
|
||||
long int initdram (int);
|
||||
|
|
|
@ -593,7 +593,7 @@ char *asprintf(const char *fmt, ...)
|
|||
}
|
||||
EXPORT_SYMBOL(asprintf);
|
||||
|
||||
void panic(const char *fmt, ...)
|
||||
void __noreturn panic(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
|
Loading…
Reference in New Issue