tegra-flash-reboot: fix build with clang 16

| /build/tmp/work/armv8a_tegra-lmp-linux/tegra-flash-reboot/1.0-r0/reboot-recovery.c:8:15: error: call to undeclared function 'syscall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
|         return (int) syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, arg);
|                      ^

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
This commit is contained in:
Jose Quaresma
2023-03-22 15:21:43 +00:00
committed by Matt Madison
parent c53edc6321
commit 11f04524bf

View File

@@ -2,6 +2,7 @@
#include <linux/reboot.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
#include <unistd.h>
static inline int sys_reboot(const void *arg) {
return (int) syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, arg);