WARNING: Block comments use a trailing */ on a separate line #53: FILE: tools/lib/bpf/btf.c:5845: + * type ID, its length equals to the above ids */ WARNING: line length of 82 exceeds 80 columns #61: FILE: tools/lib/bpf/btf.c:5853: +int btf__permute(struct btf *btf, __u32 *ids, const struct btf_permute_opts *opts) WARNING: line length of 81 exceeds 80 columns #199: FILE: tools/lib/bpf/btf.c:5991: + return btf_remap_types(p->btf, p->btf_ext, btf_permute_remap_type_id, p); ERROR: space prohibited before that ':' (ctx:WxV) #214: FILE: tools/lib/bpf/btf.h:280: + size_t :0; ^ CHECK: Please use a blank line after function/struct/union/enum declarations #216: FILE: tools/lib/bpf/btf.h:282: +}; +#define btf_permute_opts__last_field btf_ext WARNING: line length of 89 exceeds 80 columns #219: FILE: tools/lib/bpf/btf.h:285: + * @brief **btf__permute()** rearranges BTF types in-place according to specified mapping WARNING: line length of 89 exceeds 80 columns #221: FILE: tools/lib/bpf/btf.h:287: + * @param ids Array defining new type order. Must contain exactly btf->nr_types elements, WARNING: line length of 96 exceeds 80 columns #222: FILE: tools/lib/bpf/btf.h:288: + * each being a valid type ID in range [btf->start_id, btf->start_id + btf->nr_types - 1] WARNING: line length of 86 exceeds 80 columns #223: FILE: tools/lib/bpf/btf.h:289: + * @param opts Optional parameters, including BTF extension data for reference updates WARNING: line length of 85 exceeds 80 columns #226: FILE: tools/lib/bpf/btf.h:292: + * **btf__permute()** performs an in-place permutation of BTF types, rearranging them WARNING: line length of 90 exceeds 80 columns #227: FILE: tools/lib/bpf/btf.h:293: + * according to the order specified in @p ids array. After reordering, all type references WARNING: line length of 86 exceeds 80 columns #228: FILE: tools/lib/bpf/btf.h:294: + * within the BTF data and optional BTF extension are updated to maintain consistency. WARNING: line length of 83 exceeds 80 columns #234: FILE: tools/lib/bpf/btf.h:300: + * This is particularly useful for optimizing type locality after BTF deduplication WARNING: line length of 96 exceeds 80 columns #239: FILE: tools/lib/bpf/btf.h:305: + * - -EINVAL: Invalid parameters or invalid ID mapping (e.g., duplicate IDs, out-of-range IDs) WARNING: line length of 94 exceeds 80 columns #242: FILE: tools/lib/bpf/btf.h:308: +LIBBPF_API int btf__permute(struct btf *btf, __u32 *ids, const struct btf_permute_opts *opts); total: 1 errors, 13 warnings, 1 checks, 209 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 41965959a607 ("libbpf: Add BTF permutation support for type reordering") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.