diff options
| author | Feng Yang <yangfeng@kylinos.cn> | 2025-07-10 13:54:19 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-07-16 18:34:42 -0700 |
| commit | 62ef449b8d8e312ee06279da797702cdb19a9920 (patch) | |
| tree | faf6ef61ddf7e16e1e6d16c373cb401c7fbf6abc /net/netlink | |
| parent | 1f489662fba823c5063f99cd875516829be0c276 (diff) | |
bpf: Clean up individual BTF_ID code
Use BTF_ID_LIST_SINGLE(a, b, c) instead of
BTF_ID_LIST(a)
BTF_ID(b, c)
Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Link: https://lore.kernel.org/r/20250710055419.70544-1-yangfeng59949@163.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/netlink')
| -rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index e8972a857e51..bea064febf80 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -2869,8 +2869,7 @@ static const struct rhashtable_params netlink_rhashtable_params = { }; #if defined(CONFIG_BPF_SYSCALL) && defined(CONFIG_PROC_FS) -BTF_ID_LIST(btf_netlink_sock_id) -BTF_ID(struct, netlink_sock) +BTF_ID_LIST_SINGLE(btf_netlink_sock_id, struct, netlink_sock) static const struct bpf_iter_seq_info netlink_seq_info = { .seq_ops = &netlink_seq_ops, |
