mirror of
				https://github.com/lingble/meta-tegra.git
				synced 2025-10-30 03:52:41 +00:00 
			
		
		
		
	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
					Jose Quaresma
				
			
				
					committed by
					
						 Matt Madison
						Matt Madison
					
				
			
			
				
	
			
			
			 Matt Madison
						Matt Madison
					
				
			
						parent
						
							c53edc6321
						
					
				
				
					commit
					11f04524bf
				
			| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user