]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: rename list_head -> graph_root in field info types
authorDave Marchevsky <davemarchevsky@fb.com>
Sat, 17 Dec 2022 08:24:57 +0000 (00:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:11 +0000 (23:11 +0900)
commitb4163d14051a54c73aafbde57b20e5fce2be678a
treea031fb8edfa30bccb583105649883f3ab6f35109
parent494064ffd60d044c097d514917c40913d1affbca
bpf: rename list_head -> graph_root in field info types

[ Upstream commit 30465003ad776a922c32b2dac58db14f120f037e ]

Many of the structs recently added to track field info for linked-list
head are useful as-is for rbtree root. So let's do a mechanical renaming
of list_head-related types and fields:

include/linux/bpf.h:
  struct btf_field_list_head -> struct btf_field_graph_root
  list_head -> graph_root in struct btf_field union
kernel/bpf/btf.c:
  list_head -> graph_root in struct btf_field_info

This is a nonfunctional change, functionality to actually use these
fields for rbtree will be added in further patches.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20221217082506.1570898-5-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Stable-dep-of: f6a6a5a97628 ("bpf: Fix struct_meta lookup for bpf_obj_free_fields kfunc call")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/bpf.h
kernel/bpf/btf.c
kernel/bpf/helpers.c
kernel/bpf/verifier.c