]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
objtool: Fix 32-bit build
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 6 Mar 2018 23:58:15 +0000 (17:58 -0600)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 15 Mar 2018 21:29:09 +0000 (18:29 -0300)
commit49f33f1c9d0871374964ca2f3f032ebded264b67
tree0e77554e00a0b450c8cf382a997e8e4fe48f43ca
parent9f8c373348577e4028575d586463ac0f0cec9601
objtool: Fix 32-bit build

BugLink: http://bugs.launchpad.net/bugs/1756100
commit 63474dc4ac7ed3848a4786b9592dd061901f606d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
tools/objtool/check.c