mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	checkpatch.pl: Make fdt / initrd relocation disabling an error
Entirely disabling relocation of the device tree or initrd is almost never the right answer. Doing this by default leads to hard to diagnose run-time failures. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		
							parent
							
								
									076617847a
								
							
						
					
					
						commit
						12178b51c2
					
				@ -2359,6 +2359,12 @@ sub u_boot_line {
 | 
			
		||||
		ERROR("BARRED_INCLUDE_IN_HDR",
 | 
			
		||||
		      "Avoid including common.h and dm.h in header files\n" . $herecurr);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	# Do not disable fdt / initrd relocation
 | 
			
		||||
	if ($rawline =~ /.*(fdt|initrd)_high=0xffffffff/) {
 | 
			
		||||
		ERROR("DISABLE_FDT_OR_INITRD_RELOC",
 | 
			
		||||
		     "fdt or initrd relocation disabled at boot time\n" . $herecurr);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub process {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user