mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
bpf: Mark bpf_refcount field as unique
BPF_REFCOUNT is not marked as a unique field, while it should be. Fix
this oversight.
Fixes: d54730b50b ("bpf: Introduce opaque bpf_refcount struct and add btf_record plumbing")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://patch.msgid.link/20260719153634.2908692-4-memxor@gmail.com
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
This commit is contained in:
parent
f08619f060
commit
61e655391c
|
|
@ -3669,7 +3669,7 @@ static int btf_get_field_type(const struct btf *btf, const struct btf_type *var_
|
|||
{ BPF_LIST_NODE, "bpf_list_node", false },
|
||||
{ BPF_RB_ROOT, "bpf_rb_root", false },
|
||||
{ BPF_RB_NODE, "bpf_rb_node", false },
|
||||
{ BPF_REFCOUNT, "bpf_refcount", false },
|
||||
{ BPF_REFCOUNT, "bpf_refcount", true },
|
||||
};
|
||||
int type = 0, i;
|
||||
const char *name = __btf_name_by_offset(btf, var_type->name_off);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user