mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
bpf: Use char in prog and map name
Instead of u8, use char for prog and map name. It can avoid the userspace tool getting compiler's signess warning. The bpf_prog_aux, bpf_map, bpf_attr, bpf_prog_info and bpf_map_info are changed. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
473d97343f
commit
067cae4777
3 changed files with 10 additions and 10 deletions
|
@ -56,7 +56,7 @@ struct bpf_map {
|
|||
struct work_struct work;
|
||||
atomic_t usercnt;
|
||||
struct bpf_map *inner_map_meta;
|
||||
u8 name[BPF_OBJ_NAME_LEN];
|
||||
char name[BPF_OBJ_NAME_LEN];
|
||||
};
|
||||
|
||||
/* function argument constraints */
|
||||
|
@ -189,7 +189,7 @@ struct bpf_prog_aux {
|
|||
struct bpf_prog *prog;
|
||||
struct user_struct *user;
|
||||
u64 load_time; /* ns since boottime */
|
||||
u8 name[BPF_OBJ_NAME_LEN];
|
||||
char name[BPF_OBJ_NAME_LEN];
|
||||
union {
|
||||
struct work_struct work;
|
||||
struct rcu_head rcu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue