]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
objtool: Fix 32-bit build
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 6 Mar 2018 23:58:15 +0000 (17:58 -0600)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 Mar 2018 06:50:38 +0000 (07:50 +0100)
commit63474dc4ac7ed3848a4786b9592dd061901f606d
tree4facfc2ccbbe9b0f8b4580681d4c41c6d51380c8
parent945fd17ab6bab8a4d05da6c3170519fbcfe62ddb
objtool: Fix 32-bit build

Fix the objtool build when cross-compiling a 64-bit kernel on a 32-bit
host.  This also simplifies read_retpoline_hints() a bit and makes its
implementation similar to most of the other annotation reading
functions.

Reported-by: Sven Joachim <svenjoac@gmx.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: b5bc2231b8ad ("objtool: Add retpoline validation")
Link: http://lkml.kernel.org/r/2ca46c636c23aa9c9d57d53c75de4ee3ddf7a7df.1520380691.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c