CHECK: Alignment should match open parenthesis #32: FILE: tools/lib/bpf/libbpf.c:8464: +static int libbpf_kallsyms_parse(kallsyms_cb_t cb, void *ctx, + bool skip_if_module) WARNING: line length of 83 exceeds 80 columns #107: FILE: tools/lib/bpf/libbpf.c:11554: + return append_to_file(tracefs_kprobe_events(), "%c:%s/%s %s+0x%zx", CHECK: Blank lines aren't necessary after an open brace '{' #160: FILE: tools/lib/bpf/libbpf.c:11702: + if (strcmp(sym_name, data->func_name) == 0) { + CHECK: Alignment should match open parenthesis #167: FILE: tools/lib/bpf/libbpf.c:11709: + pr_warn("kernel symbol '%s': resolution is ambiguous: 0x%llx or 0x%llx\n", + sym_name, data->kaddr, sym_addr); WARNING: line length of 95 exceeds 80 columns #208: FILE: tools/lib/bpf/libbpf.c:11780: + pfd = perf_event_kprobe_open_legacy(legacy_probe, retprobe, optional_func_name, WARNING: line length of 98 exceeds 80 columns #225: FILE: tools/lib/bpf/libbpf.c:11798: + if ((err == -EADDRNOTAVAIL || (legacy && err == -EINVAL)) && optional_func_name) { WARNING: line length of 85 exceeds 80 columns #242: FILE: tools/lib/bpf/libbpf.c:11815: + err = libbpf_kallsyms_parse(find_kaddr_cb, &kaddr_ctx, true); total: 0 errors, 4 warnings, 3 checks, 237 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 a157ea7964dd ("libbpf: Handle duplicate kprobe symbols in attach_kprobe_opts") 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, 3 checks, 237 lines checked