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 93 exceeds 80 columns #111: FILE: tools/bpf/resolve_btfids/main.c:1029: +static const struct btf_type *btf__unqualified_type_by_id(const struct btf *btf, s32 type_id) WARNING: line length of 85 exceeds 80 columns #122: FILE: tools/bpf/resolve_btfids/main.c:1040: +static bool btf__is_kf_implicit_arg(const struct btf *btf, const struct btf_param *p) WARNING: line length of 86 exceeds 80 columns #169: FILE: tools/bpf/resolve_btfids/main.c:1087: +static s64 process_kfunc_with_implicit_args(struct btf2btf_context *ctx, s32 kfunc_id) WARNING: line length of 88 exceeds 80 columns #183: FILE: tools/bpf/resolve_btfids/main.c:1101: + pr_err("WARN: resolve_btfids: btf id %d is not a function\n", kfunc_id); WARNING: line length of 99 exceeds 80 columns #194: FILE: tools/bpf/resolve_btfids/main.c:1112: + pr_err("ERROR: resolve_btfids: btf id %d is not a function prototype\n", proto_id); WARNING: line length of 87 exceeds 80 columns #198: FILE: tools/bpf/resolve_btfids/main.c:1116: + len = snprintf(tmp_name, sizeof(tmp_name), "%s%s", kfunc_name, KF_IMPL_SUFFIX); WARNING: line length of 95 exceeds 80 columns #200: FILE: tools/bpf/resolve_btfids/main.c:1118: + pr_err("ERROR: function name is too long: %s%s\n", kfunc_name, KF_IMPL_SUFFIX); WARNING: line length of 90 exceeds 80 columns #205: FILE: tools/bpf/resolve_btfids/main.c:1123: + pr_debug("resolve_btfids: function %s already exists in BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #212: FILE: tools/bpf/resolve_btfids/main.c:1130: + pr_err("ERROR: resolve_btfids: failed to add func %s to BTF\n", tmp_name); WARNING: line length of 90 exceeds 80 columns #216: FILE: tools/bpf/resolve_btfids/main.c:1134: + /* Copy all decl tags except "bpf_kfunc" from the original kfunc to the new one */ WARNING: line length of 88 exceeds 80 columns #236: FILE: tools/bpf/resolve_btfids/main.c:1154: + * Drop the _impl suffix and point kfunc_name to the local buffer for later use. WARNING: line length of 95 exceeds 80 columns #254: FILE: tools/bpf/resolve_btfids/main.c:1172: + pr_err("ERROR: resolve_btfids: failed to add func proto for %s\n", kfunc_name); WARNING: line length of 94 exceeds 80 columns #273: FILE: tools/bpf/resolve_btfids/main.c:1191: + pr_debug("resolve_btfids: updated BTF for kfunc with implicit args %s\n", kfunc_name); WARNING: line length of 90 exceeds 80 columns #278: FILE: tools/bpf/resolve_btfids/main.c:1196: +static s64 btf__collect_decl_tags(const struct btf *btf, s32 *decl_tags, u32 decl_tags_sz) CHECK: Alignment should match open parenthesis #290: FILE: tools/bpf/resolve_btfids/main.c:1208: + pr_err("ERROR: resolve_btfids: too many decl tags in BTF - limit %s\n", + decl_tags_sz); WARNING: line length of 81 exceeds 80 columns #299: FILE: tools/bpf/resolve_btfids/main.c:1217: +static s64 build_btf2btf_context(struct object *obj, struct btf2btf_context *ctx) WARNING: line length of 100 exceeds 80 columns #303: FILE: tools/bpf/resolve_btfids/main.c:1221: + nr_decl_tags = btf__collect_decl_tags(obj->btf, ctx->decl_tags, ARRAY_SIZE(ctx->decl_tags)); WARNING: line length of 98 exceeds 80 columns #323: FILE: tools/bpf/resolve_btfids/main.c:1241: + nr_kfuncs = collect_kfunc_ids_by_flags(obj, KF_IMPLICIT_ARGS, kfuncs, ARRAY_SIZE(kfuncs)); total: 0 errors, 17 warnings, 2 checks, 300 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 df91fabfcc58 ("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, 17 warnings, 2 checks, 300 lines checked