Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Josh Poimboeuf and committed by
Ingo Molnar
a8d39a62 876a4bce

+1 -6
+1 -6
tools/objtool/check.c
··· 340 340 memset(state, 0, sizeof(*state)); 341 341 init_cfi_state(&state->cfi); 342 342 343 - /* 344 - * We need the full vmlinux for noinstr validation, otherwise we can 345 - * not correctly determine insn_call_dest(insn)->sec (external symbols 346 - * do not have a section). 347 - */ 348 - if (opts.link && opts.noinstr && sec) 343 + if (opts.noinstr && sec) 349 344 state->noinstr = sec->noinstr; 350 345 } 351 346