CHECK: Prefer using the BIT macro #50: FILE: tools/bpf/resolve_btfids/main.c:155: +#define KF_IMPLICIT_ARGS (1 << 16) WARNING: line length of 90 exceeds 80 columns #74: FILE: tools/bpf/resolve_btfids/main.c:857: +static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id) WARNING: line length of 89 exceeds 80 columns #153: FILE: tools/bpf/resolve_btfids/main.c:936: + * Lower bound is exclusive to skip the 8-byte header of the set. WARNING: line length of 94 exceeds 80 columns #154: FILE: tools/bpf/resolve_btfids/main.c:937: + * Upper bound is inclusive to capture the last entry at offset 8*cnt. WARNING: line length of 81 exceeds 80 columns #242: FILE: tools/bpf/resolve_btfids/main.c:1025: +static int build_btf2btf_context(struct object *obj, struct btf2btf_context *ctx) CHECK: Please don't use multiple blank lines #263: FILE: tools/bpf/resolve_btfids/main.c:1046: + + WARNING: line length of 93 exceeds 80 columns #312: FILE: tools/bpf/resolve_btfids/main.c:1095: +static int process_kfunc_with_implicit_args(struct btf2btf_context *ctx, struct kfunc *kfunc) WARNING: line length of 94 exceeds 80 columns #325: FILE: tools/bpf/resolve_btfids/main.c:1108: + pr_err("ERROR: resolve_btfids: btf id %d is not a function\n", kfunc->btf_id); WARNING: line length of 99 exceeds 80 columns #334: FILE: tools/bpf/resolve_btfids/main.c:1117: + pr_err("ERROR: resolve_btfids: btf id %d is not a function prototype\n", proto_id); WARNING: line length of 88 exceeds 80 columns #338: FILE: tools/bpf/resolve_btfids/main.c:1121: + len = snprintf(tmp_name, sizeof(tmp_name), "%s%s", kfunc->name, KF_IMPL_SUFFIX); WARNING: line length of 96 exceeds 80 columns #340: FILE: tools/bpf/resolve_btfids/main.c:1123: + pr_err("ERROR: function name is too long: %s%s\n", kfunc->name, KF_IMPL_SUFFIX); WARNING: line length of 90 exceeds 80 columns #345: FILE: tools/bpf/resolve_btfids/main.c:1128: + pr_debug("resolve_btfids: function %s already exists in BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #352: FILE: tools/bpf/resolve_btfids/main.c:1135: + pr_err("ERROR: resolve_btfids: failed to add func %s to BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #356: FILE: tools/bpf/resolve_btfids/main.c:1139: + /* Copy all decl tags except "bpf_kfunc" from the original kfunc to the new one */ WARNING: line length of 82 exceeds 80 columns #369: FILE: tools/bpf/resolve_btfids/main.c:1152: + err = btf__add_decl_attr(btf, tag_name, new_func_id, idx); WARNING: line length of 81 exceeds 80 columns #371: FILE: tools/bpf/resolve_btfids/main.c:1154: + err = btf__add_decl_tag(btf, tag_name, new_func_id, idx); WARNING: line length of 96 exceeds 80 columns #384: FILE: tools/bpf/resolve_btfids/main.c:1167: + pr_err("ERROR: resolve_btfids: failed to add func proto for %s\n", kfunc->name); WARNING: line length of 95 exceeds 80 columns #409: FILE: tools/bpf/resolve_btfids/main.c:1192: + pr_debug("resolve_btfids: updated BTF for kfunc with implicit args %s\n", kfunc->name); total: 0 errors, 16 warnings, 2 checks, 401 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 fc8272a08a7b ("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, 401 lines checked