mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	objtool: Remove redundant opts.noinstr dependency
The --noinstr dependecy on --link is already enforced in the cmdline arg parsing code. Remove the redundant check. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/0ead7ffa0f5be2e81aebbcc585e07b2c98702b44.1742852847.git.jpoimboe@kernel.org
This commit is contained in:
		
							parent
							
								
									876a4bce38
								
							
						
					
					
						commit
						a8d39a62c6
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -340,12 +340,7 @@ static void init_insn_state(struct objtool_file *file, struct insn_state *state,
 | 
			
		|||
	memset(state, 0, sizeof(*state));
 | 
			
		||||
	init_cfi_state(&state->cfi);
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * We need the full vmlinux for noinstr validation, otherwise we can
 | 
			
		||||
	 * not correctly determine insn_call_dest(insn)->sec (external symbols
 | 
			
		||||
	 * do not have a section).
 | 
			
		||||
	 */
 | 
			
		||||
	if (opts.link && opts.noinstr && sec)
 | 
			
		||||
	if (opts.noinstr && sec)
 | 
			
		||||
		state->noinstr = sec->noinstr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue