startup: add __noreturn to start_barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7ed52f8870
commit
0bbb021b48
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue