CHECK: Prefer using the BIT macro #51: FILE: tools/bpf/resolve_btfids/main.c:155: +#define KF_IMPLICIT_ARGS (1 << 16) WARNING: line length of 90 exceeds 80 columns #77: FILE: tools/bpf/resolve_btfids/main.c:859: +static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id) WARNING: line length of 89 exceeds 80 columns #170: FILE: tools/bpf/resolve_btfids/main.c:952: + * Lower bound is exclusive to skip the 8-byte header of the set. WARNING: line length of 94 exceeds 80 columns #171: FILE: tools/bpf/resolve_btfids/main.c:953: + * Upper bound is inclusive to capture the last entry at offset 8*cnt. WARNING: line length of 81 exceeds 80 columns #237: FILE: tools/bpf/resolve_btfids/main.c:1019: +static int build_btf2btf_context(struct object *obj, struct btf2btf_context *ctx) CHECK: Please don't use multiple blank lines #258: FILE: tools/bpf/resolve_btfids/main.c:1040: + + WARNING: line length of 93 exceeds 80 columns #307: FILE: tools/bpf/resolve_btfids/main.c:1089: +static int process_kfunc_with_implicit_args(struct btf2btf_context *ctx, struct kfunc *kfunc) WARNING: line length of 94 exceeds 80 columns #320: FILE: tools/bpf/resolve_btfids/main.c:1102: + pr_err("ERROR: resolve_btfids: btf id %d is not a function\n", kfunc->btf_id); WARNING: line length of 99 exceeds 80 columns #329: FILE: tools/bpf/resolve_btfids/main.c:1111: + pr_err("ERROR: resolve_btfids: btf id %d is not a function prototype\n", proto_id); WARNING: line length of 88 exceeds 80 columns #333: FILE: tools/bpf/resolve_btfids/main.c:1115: + len = snprintf(tmp_name, sizeof(tmp_name), "%s%s", kfunc->name, KF_IMPL_SUFFIX); WARNING: line length of 96 exceeds 80 columns #335: FILE: tools/bpf/resolve_btfids/main.c:1117: + pr_err("ERROR: function name is too long: %s%s\n", kfunc->name, KF_IMPL_SUFFIX); WARNING: line length of 90 exceeds 80 columns #340: FILE: tools/bpf/resolve_btfids/main.c:1122: + pr_debug("resolve_btfids: function %s already exists in BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #347: FILE: tools/bpf/resolve_btfids/main.c:1129: + pr_err("ERROR: resolve_btfids: failed to add func %s to BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #351: FILE: tools/bpf/resolve_btfids/main.c:1133: + /* Copy all decl tags except "bpf_kfunc" from the original kfunc to the new one */ WARNING: line length of 82 exceeds 80 columns #364: FILE: tools/bpf/resolve_btfids/main.c:1146: + err = btf__add_decl_attr(btf, tag_name, new_func_id, idx); WARNING: line length of 81 exceeds 80 columns #366: FILE: tools/bpf/resolve_btfids/main.c:1148: + err = btf__add_decl_tag(btf, tag_name, new_func_id, idx); WARNING: line length of 96 exceeds 80 columns #379: FILE: tools/bpf/resolve_btfids/main.c:1161: + pr_err("ERROR: resolve_btfids: failed to add func proto for %s\n", kfunc->name); WARNING: line length of 95 exceeds 80 columns #404: FILE: tools/bpf/resolve_btfids/main.c:1186: + pr_debug("resolve_btfids: updated BTF for kfunc with implicit args %s\n", kfunc->name); total: 0 errors, 16 warnings, 2 checks, 400 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 4216daa8d0ee ("resolve_btfids: Support for KF_IMPLICIT_ARGS") 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, 16 warnings, 2 checks, 400 lines checked