]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23c83a3fd974db4a2ea0f81a168884dc803b2332
treef755bb75c5cf0ed37980fa67d8b1dc82d868182d
parenta964d19a997a621999daf3f7ddacc4ee8372f228
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