VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: SeongJae Park <sj@kernel.org> 2023-07-01 17:14:47 +0000 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-07-19 16:36:47 +0200 commit: 90b9e7202676742ede5f1e6c46000a53c6a6c4c0 parent: f9d46429de2a251e1e4962e1bf86c344d6336562
Commit Summary:
bpf, btf: Warn but return no error for NULL btf from __register_btf_kfunc_id_set()
Diffstat:
1 file changed, 2 insertions, 4 deletions
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 72b32b7cd9cd..25ca17a8e196 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -7848,10 +7848,8 @@ static int __register_btf_kfunc_id_set(enum btf_kfunc_hook hook,
 			pr_err("missing vmlinux BTF, cannot register kfuncs\n");
 			return -ENOENT;
 		}
-		if (kset->owner && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES)) {
-			pr_err("missing module BTF, cannot register kfuncs\n");
-			return -ENOENT;
-		}
+		if (kset->owner && IS_ENABLED(CONFIG_DEBUG_INFO_BTF_MODULES))
+			pr_warn("missing module BTF, cannot register kfuncs\n");
 		return 0;
 	}
 	if (IS_ERR(btf))