summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDmitrii Banshchikov <me@ubique.spb.ru>2021-02-23 13:04:16 +0400
committerDaniel Borkmann <daniel@iogearbox.net>2021-02-24 16:43:39 +0100
commitf4eda8b6e4a5c7897c6bb992ed63a27061b371ef (patch)
tree522e771408f9279a552e15e641316ebaac1c946b /kernel
parent53f523f3052ac16bbc7718032aa6b848f971d28c (diff)
downloadlwn-f4eda8b6e4a5c7897c6bb992ed63a27061b371ef.tar.gz
lwn-f4eda8b6e4a5c7897c6bb992ed63a27061b371ef.zip
bpf: Drop imprecise log message
Now it is possible for global function to have a pointer argument that points to something different than struct. Drop the irrelevant log message and keep the logic same. Fixes: e5069b9c23b3 ("bpf: Support pointers in global func args") Signed-off-by: Dmitrii Banshchikov <me@ubique.spb.ru> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20210223090416.333943-1-me@ubique.spb.ru
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bpf/btf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 2efeb5f4b343..b1a76fe046cb 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -4321,8 +4321,6 @@ btf_get_prog_ctx_type(struct bpf_verifier_log *log, struct btf *btf,
* is not supported yet.
* BPF_PROG_TYPE_RAW_TRACEPOINT is fine.
*/
- if (log->level & BPF_LOG_LEVEL)
- bpf_log(log, "arg#%d type is not a struct\n", arg);
return NULL;
}
tname = btf_name_by_offset(btf, t->name_off);