]> www.infradead.org Git - users/jedix/linux-maple.git/commit
objtool: Add missing endian conversion to read_annotate()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 30 Jun 2025 13:12:30 +0000 (15:12 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Jul 2025 13:02:04 +0000 (15:02 +0200)
commitccdd09e0fc0d5ce6dfc8360f0c88da9a5045b6ea
tree5b59645c957ba7f3b8cab815577c593ee79efe18
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
objtool: Add missing endian conversion to read_annotate()

Trying to compile an x86 kernel on big endian results in this error:

net/ipv4/netfilter/iptable_nat.o: warning: objtool: iptable_nat_table_init+0x150: Unknown annotation type: 50331648
make[5]: *** [scripts/Makefile.build:287: net/ipv4/netfilter/iptable_nat.o] Error 255

Reason is a missing endian conversion in read_annotate().
Add the missing conversion to fix this.

Fixes: 2116b349e29a ("objtool: Generic annotation infrastructure")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250630131230.4130185-1-hca@linux.ibm.com
tools/objtool/check.c