objtool: Clean instruction state before each function validation
authorJulien Thierry <jthierry@redhat.com>
Fri, 27 Mar 2020 15:28:40 +0000 (15:28 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2020 08:53:49 +0000 (10:53 +0200)
commit0699e551af268c9841a205a3e90dc1615fb63d84
treef755bb75c5cf0ed37980fa67d8b1dc82d868182d
parenta70266b5b2e1c4262566a52f2ef16bdcde90f99b
objtool: Clean instruction state before each function validation

When a function fails its validation, it might leave a stale state
that will be used for the validation of other functions. That would
cause false warnings on potentially valid functions.

Reset the instruction state before the validation of each individual
function.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c