Skip to content

Commit 489e355

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Add HAVE_NOINSTR_VALIDATION
Remove CONFIG_NOINSTR_VALIDATION's dependency on HAVE_OBJTOOL, since other arches might want to implement objtool without it. Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Link: https://lkml.kernel.org/r/488e94f69db4df154499bc098573d90e5db1c826.1650300597.git.jpoimboe@redhat.com
1 parent 0f620ce commit 489e355

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

arch/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,9 @@ config HAVE_JUMP_LABEL_HACK
10381038
config HAVE_NOINSTR_HACK
10391039
bool
10401040

1041+
config HAVE_NOINSTR_VALIDATION
1042+
bool
1043+
10411044
config HAVE_STACK_VALIDATION
10421045
bool
10431046
help

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ config X86
233233
select HAVE_MOVE_PUD
234234
select HAVE_NOINSTR_HACK if HAVE_OBJTOOL
235235
select HAVE_NMI
236+
select HAVE_NOINSTR_VALIDATION if HAVE_OBJTOOL
236237
select HAVE_OBJTOOL if X86_64
237238
select HAVE_OPTPROBES
238239
select HAVE_PCSPKR_PLATFORM

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ config STACK_VALIDATION
502502

503503
config NOINSTR_VALIDATION
504504
bool
505-
depends on HAVE_OBJTOOL && DEBUG_ENTRY
505+
depends on HAVE_NOINSTR_VALIDATION && DEBUG_ENTRY
506506
select OBJTOOL
507507
default y
508508

0 commit comments

Comments
 (0)