9
0
Fork 0

startup: add __noreturn to start_barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-20 13:36:20 +01:00
parent 7ed52f8870
commit 0bbb021b48
3 changed files with 5 additions and 4 deletions

View File

@ -90,7 +90,7 @@ fs_initcall(mount_root);
int (*barebox_main)(void);
void start_barebox (void)
void __noreturn start_barebox(void)
{
initcall_t *initcall;
int result;
@ -162,4 +162,3 @@ void shutdown_barebox(void)
arch_shutdown();
#endif
}

View File

@ -165,7 +165,7 @@ unsigned long long strtoull_suffix(const char *str, char **endp, int base);
*/
extern int (*barebox_main)(void);
void start_barebox(void);
void __noreturn start_barebox(void);
void shutdown_barebox(void);
/*

View File

@ -14,6 +14,8 @@ void __noreturn panic(const char *fmt, ...)
while(1);
}
void start_barebox(void)
void __noreturn start_barebox(void)
{
/* Should never be here in the pbl */
hang();
}