mirror of
				https://github.com/meizu-m86/kexec-tools-arm64
				synced 2025-11-04 13:56:01 +08:00 
			
		
		
		
	kexec/arch/arm/kexec-uImage-arm.c: In function 'uImage_arm_probe': kexec/arch/arm/kexec-uImage-arm.c:14:2: warning: pointer targets in passing argument 1 of 'uImage_probe_kernel' differ in signedness [-Wpointer-sign] Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
		
			
				
	
	
		
			24 lines
		
	
	
		
			604 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			604 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * uImage support added by Marc Andre Tanner <mat@brain-dump.org>
 | 
						|
 */
 | 
						|
#include <stdint.h>
 | 
						|
#include <string.h>
 | 
						|
#include <sys/types.h>
 | 
						|
#include <image.h>
 | 
						|
#include <kexec-uImage.h>
 | 
						|
#include "../../kexec.h"
 | 
						|
#include "kexec-arm.h"
 | 
						|
 | 
						|
int uImage_arm_probe(const char *buf, off_t len)
 | 
						|
{
 | 
						|
	return uImage_probe_kernel((const unsigned char *)buf, len,
 | 
						|
				   IH_ARCH_ARM);
 | 
						|
}
 | 
						|
 | 
						|
int uImage_arm_load(int argc, char **argv, const char *buf, off_t len,
 | 
						|
	struct kexec_info *info)
 | 
						|
{
 | 
						|
	return zImage_arm_load(argc, argv, buf + sizeof(struct image_header),
 | 
						|
	                       len - sizeof(struct image_header), info);
 | 
						|
}
 |