CHECK: Alignment should match open parenthesis #100: FILE: tools/bpf/resolve_btfids/main.c:795: +static int update_btf_section(const char *path, const struct btf *btf, + const char *btf_secname) CHECK: Comparison to NULL could be written "!elf" #123: FILE: tools/bpf/resolve_btfids/main.c:818: + if (elf == NULL) { CHECK: Comparison to NULL could be written "!shdr" #135: FILE: tools/bpf/resolve_btfids/main.c:830: + if (shdr == NULL) WARNING: line length of 84 exceeds 80 columns #191: FILE: tools/bpf/resolve_btfids/main.c:886: + pr_err("FAILED: load BTF from %s: %s\n", obj->path, strerror(-err)); WARNING: line length of 82 exceeds 80 columns #216: FILE: tools/bpf/resolve_btfids/main.c:911: + qsort_r(permute_ids, nr_types, sizeof(*permute_ids), cmp_type_names, btf); CHECK: Alignment should match open parenthesis #234: FILE: tools/bpf/resolve_btfids/main.c:929: + pr_err("FAILED to generate distilled base BTF: %s\n", + strerror(errno)); WARNING: line length of 94 exceeds 80 columns #240: FILE: tools/bpf/resolve_btfids/main.c:935: + err = update_btf_section(obj->path, distilled_base, BTF_BASE_ELF_SEC); WARNING: line length of 84 exceeds 80 columns #242: FILE: tools/bpf/resolve_btfids/main.c:937: + pr_err("FAILED to update '%s'\n", BTF_BASE_ELF_SEC); total: 0 errors, 4 warnings, 4 checks, 249 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 034d5f1f754e ("tools/resolve_btfids: Add --btf_sort option for BTF name sorting") 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. total: 0 errors, 4 warnings, 4 checks, 249 lines checked