File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414#ifndef ZEPHYR_INCLUDE_SYS_REBOOT_H_
1515#define ZEPHYR_INCLUDE_SYS_REBOOT_H_
1616
17+ #include <toolchain.h>
18+
1719#ifdef __cplusplus
1820extern "C" {
1921#endif
@@ -33,7 +35,7 @@ extern "C" {
3335 * @return N/A
3436 */
3537
36- extern void sys_reboot (int type );
38+ extern FUNC_NORETURN void sys_reboot (int type );
3739
3840#ifdef __cplusplus
3941}
Original file line number Diff line number Diff line change 44 * SPDX-License-Identifier: Apache-2.0
55 */
66
7+ #include <sys/reboot.h>
78#include <kernel.h>
89#include <sys/printk.h>
910
1011extern void sys_arch_reboot (int type );
1112extern void sys_clock_disable (void );
1213
13- void sys_reboot (int type )
14+ FUNC_NORETURN void sys_reboot (int type )
1415{
1516 (void )irq_lock ();
1617#ifdef CONFIG_SYS_CLOCK_EXISTS
You can’t perform that action at this time.
0 commit comments