]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: fix compilation failure with the x32 toolchain
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 6 Jan 2026 11:13:15 +0000 (12:13 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 13 Jan 2026 10:37:50 +0000 (11:37 +0100)
commit26bea10450afe5ad4dd0e0bbb797c44e1df110fe
treedd7192a625fc08735df575ad540534b2f5ff8e43
parent0f61b1860cc3f52aef9036d7235ed1f017632193
objtool: fix compilation failure with the x32 toolchain

When using the x32 toolchain, compilation fails because the printf
specifier "%lx" (long), doesn't match the type of the "checksum" variable
(long long). Fix this by changing the printf specifier to "%llx" and
casting "checksum" to unsigned long long.

Fixes: a3493b33384a ("objtool/klp: Add --debug-checksum=<funcs> to show per-instruction checksums")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/a1158c99-fe0e-a218-4b5b-ffac212489f6@redhat.com
tools/objtool/include/objtool/warn.h