CHECK: Alignment should match open parenthesis #100: FILE: tools/bpf/resolve_btfids/main.c:795: +static int update_elf(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)); CHECK: Alignment should match open parenthesis #237: FILE: tools/bpf/resolve_btfids/main.c:932: + pr_err("FAILED to generate distilled base BTF: %s\n", + strerror(errno)); WARNING: line length of 86 exceeds 80 columns #243: FILE: tools/bpf/resolve_btfids/main.c:938: + err = update_elf(obj->path, distilled_base, BTF_BASE_ELF_SEC); WARNING: line length of 84 exceeds 80 columns #245: FILE: tools/bpf/resolve_btfids/main.c:940: + pr_err("FAILED to update '%s'\n", BTF_BASE_ELF_SEC); total: 0 errors, 3 warnings, 4 checks, 252 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 64de8e10bfc1 ("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, 3 warnings, 4 checks, 252 lines checked