btf_encoder: btf_encoder__encode_tag() doesn't need the 'cu' pointer

Since we don't need the cu to get the strings table anymore, all tags
have a char pointer for strings.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-08-05 16:16:30 -03:00
parent 4360359e43
commit dc30e82b26
1 changed files with 2 additions and 2 deletions

View File

@ -817,7 +817,7 @@ static int32_t btf_encoder__add_enum_type(struct btf_encoder *encoder, struct ta
return type_id;
}
static int btf_encoder__encode_tag(struct btf_encoder *encoder, struct cu *cu, struct tag *tag,
static int btf_encoder__encode_tag(struct btf_encoder *encoder, struct tag *tag,
uint32_t core_id, uint32_t type_id_off)
{
/* single out type 0 as it represents special type "void" */
@ -1381,7 +1381,7 @@ int btf_encoder__encode_cu(struct btf_encoder *encoder, struct cu *cu)
}
cu__for_each_type(cu, core_id, pos) {
int32_t btf_type_id = btf_encoder__encode_tag(encoder, cu, pos, core_id, type_id_off);
int32_t btf_type_id = btf_encoder__encode_tag(encoder, pos, core_id, type_id_off);
if (btf_type_id < 0 ||
tag__check_id_drift(pos, core_id, btf_type_id, type_id_off)) {