diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index c5876c91face..0c465f0077d5 100644 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c @@ -9020,7 +9020,7 @@ static int btf_check_dtor_kfuncs(struct btf *btf, const struct btf_id_dtor_kfunc if (!t || !btf_type_is_ptr(t)) return -EINVAL; - if (IS_ENABLED(CONFIG_CFI_CLANG)) { + if (IS_ENABLED(CONFIG_CFI)) { /* Ensure the destructor kfunc type matches btf_dtor_kfunc_t */ t = btf_type_by_id(btf, t->type); if (!btf_type_is_void(t))