diff options
| author | Yonghong Song <yonghong.song@linux.dev> | 2026-08-28 23:15:24 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-08-29 18:16:32 -0700 |
| commit | 77983371742e37ff3117acdc5dfb1969cedd415c (patch) | |
| tree | 034d3b7923a90534154486717e07913eadc62801 /tools/lib/python/kdoc | |
| parent | f62a9b82700c718cdf619fb36aaab31015ff87eb (diff) | |
bpf: Drop the recursion depth argument of btf_type_is_scalar_struct()
btf_type_is_scalar_struct() recurses into nested struct members and
carries the nesting depth in a @rec argument, so every caller has to
spell out the 0 that starts the walk.
Move the recursion into btf_struct_member_walk() and leave
btf_type_is_scalar_struct() as a thin wrapper over it. This is
groundwork for the later patches, which give the walk further state
that callers should not have to supply: the kinds of member it accepts,
and a record of the member that made it fail.
No functional change.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260829061524.1692957-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
