]> git.itanic.dy.fi Git - linux-stable/commit
kbuild: Add skip_encoding_btf_enum64 option to pahole
authorMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Sun, 4 Sep 2022 13:19:01 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Sep 2022 10:28:08 +0000 (12:28 +0200)
commitb775fbf532dc01ae53a6fc56168fd30cb4b0c658
tree10af79652fd2ffbc42f32de59a59d859eec811bc
parent0baced0e0938f2895ceba54038eaf15ed91032e7
kbuild: Add skip_encoding_btf_enum64 option to pahole

New pahole (version 1.24) generates by default new BTF_KIND_ENUM64 BTF tag,
which is not supported by stable kernel.

As a result the kernel with CONFIG_DEBUG_INFO_BTF option will fail to
compile with following error:

  BTFIDS  vmlinux
FAILED: load BTF from vmlinux: Invalid argument

New pahole provides --skip_encoding_btf_enum64 option to skip BTF_KIND_ENUM64
generation and produce BTF supported by stable kernel.

Adding this option to scripts/pahole-flags.sh.

This change does not have equivalent commit in linus tree, because linus tree
has support for BTF_KIND_ENUM64 tag, so it does not need to be disabled.

Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/pahole-flags.sh