========== checkpatch - FAILED WARNING: line length of 96 exceeds 80 columns #65: FILE: tools/lib/bpf/btf.c:5855: +int btf__permute(struct btf *btf, __u32 *ids, __u32 ids_sz, const struct btf_permute_opts *opts) CHECK: Unnecessary parentheses around 'ids_sz > btf->nr_types' #71: FILE: tools/lib/bpf/btf.c:5861: + if (!OPTS_VALID(opts, btf_permute_opts) || (ids_sz > btf->nr_types)) WARNING: braces {} are not necessary for single statement blocks #91: FILE: tools/lib/bpf/btf.c:5881: + if (err < 0) { + goto done; + } WARNING: braces {} are not necessary for single statement blocks #95: FILE: tools/lib/bpf/btf.c:5885: + if (err < 0) { + goto done; + } WARNING: line length of 91 exceeds 80 columns #169: FILE: tools/lib/bpf/btf.c:5959: + btf->raw_size = btf->hdr->hdr_len + btf->hdr->type_len + btf->hdr->str_len; WARNING: line length of 81 exceeds 80 columns #216: FILE: tools/lib/bpf/btf.c:6006: + return btf_remap_types(p->btf, p->btf_ext, btf_permute_remap_type_id, p); ERROR: space prohibited before that ':' (ctx:WxV) #231: FILE: tools/lib/bpf/btf.h:280: + size_t :0; ^ CHECK: Please use a blank line after function/struct/union/enum declarations #233: FILE: tools/lib/bpf/btf.h:282: +}; +#define btf_permute_opts__last_field btf_ext WARNING: line length of 89 exceeds 80 columns #236: FILE: tools/lib/bpf/btf.h:285: + * @brief **btf__permute()** rearranges BTF types in-place according to specified mapping WARNING: line length of 96 exceeds 80 columns #238: FILE: tools/lib/bpf/btf.h:287: + * @param ids Array containing original type IDs (exclude VOID type ID 0) in user-defined order. WARNING: line length of 95 exceeds 80 columns #243: FILE: tools/lib/bpf/btf.h:292: + * **btf__permute()** performs an in-place permutation of BTF types, rearranging them according WARNING: line length of 93 exceeds 80 columns #244: FILE: tools/lib/bpf/btf.h:293: + * to the order specified in @ids array. If @ids_sz is smaller than the total number of types WARNING: line length of 88 exceeds 80 columns #245: FILE: tools/lib/bpf/btf.h:294: + * in @btf, the BTF will be truncated to contain only the types specified in @ids. After WARNING: line length of 93 exceeds 80 columns #246: FILE: tools/lib/bpf/btf.h:295: + * reordering, all type references within the BTF data and optional BTF extension are updated WARNING: line length of 96 exceeds 80 columns #247: FILE: tools/lib/bpf/btf.h:296: + * to maintain consistency. Subsequent btf__dedup may be required if the BTF is truncated during WARNING: line length of 96 exceeds 80 columns #252: FILE: tools/lib/bpf/btf.h:301: + * - -EINVAL: Invalid parameters or invalid ID mapping (e.g., duplicate IDs, out-of-range IDs) total: 1 errors, 13 warnings, 2 checks, 221 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 641e88c388d3 ("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.