From: Yauheni Kaliuta <ykaliuta@xxxxxxxxxx> spec: keep .BTF section in modules for s390 The patch 6a8653ed6b34 ("spec: Keep .BTF section in modules") introduced possibility to keep .BTF sections which is necessary for CONFIG_DEBUG_INFO_BTF option. At that time s390 architecture had a problem (see the 6a8653ed6b34 commit message), which was later fixed with efdd3eb8015e ("libbpf: Accommodate DWARF/compiler bug with duplicated structs"). c446fdacb10d ("bpf: fix register_btf_kfunc_id_set for !CONFIG_DEBUG_INFO_BTF") made such modules unloadable. The patch removes the workaround since it's not needed anymore. Signed-off-by: Yauheni Kaliuta <ykaliuta@xxxxxxxxxx> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -413,10 +413,8 @@ Summary: The Linux kernel %define with_zfcpdump 0 %endif -# skip BTF in kernel modules for s390x -%ifnarch s390x +# Keep as a parameter if it's needed to skip %define with_kmod_btf --keep-section '.BTF' -%endif %if 0%{?fedora} # This is not for Fedora -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1751 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure