WARNING: line length of 87 exceeds 80 columns #38: FILE: tools/lib/bpf/libbpf.c:8452: + const char *sym_name, const char *module_name, void *ctx); WARNING: line length of 88 exceeds 80 columns #56: FILE: tools/lib/bpf/libbpf.c:8470: + /* Position indicator - will be updated by %n if format fully matches */ WARNING: line length of 82 exceeds 80 columns #60: FILE: tools/lib/bpf/libbpf.c:8474: + * but we cannot use %s to capture, as it consumes the closing ']' WARNING: line length of 85 exceeds 80 columns #61: FILE: tools/lib/bpf/libbpf.c:8475: + * of the module format. Hence the %127[^] \t\n\r\v\f] which provides WARNING: line length of 81 exceeds 80 columns #69: FILE: tools/lib/bpf/libbpf.c:8483: + * Module symbol: all 4 fields matched AND we reached %n. WARNING: line length of 84 exceeds 80 columns #70: FILE: tools/lib/bpf/libbpf.c:8484: + * n > 0 means we successfully parsed up to the closing ']'. WARNING: line length of 81 exceeds 80 columns #72: FILE: tools/lib/bpf/libbpf.c:8486: + err = cb(sym_addr, sym_type, sym_name, module_name, ctx); WARNING: line length of 93 exceeds 80 columns #75: FILE: tools/lib/bpf/libbpf.c:8489: + * vmlinux symbol: 3 fields matched, next is matching failure against WARNING: line length of 94 exceeds 80 columns #76: FILE: tools/lib/bpf/libbpf.c:8490: + * '[', but we don't care as we got what we needed. Also note that the WARNING: line length of 92 exceeds 80 columns #77: FILE: tools/lib/bpf/libbpf.c:8491: + * trailing newline was consumed by the space after the symbol name. WARNING: line length of 88 exceeds 80 columns #85: FILE: tools/lib/bpf/libbpf.c:8497: + pr_warn("failed to read kallsyms entry: ret=%d n=%d\n", ret, n); WARNING: line length of 83 exceeds 80 columns #115: FILE: tools/lib/bpf/libbpf.c:11547: + return append_to_file(tracefs_kprobe_events(), "%c:%s/%s %s+0x%zx", WARNING: line length of 82 exceeds 80 columns #138: FILE: tools/lib/bpf/libbpf.c:11683: +/* Callback to find vmlinux kernel text symbol address, skipping module symbols */ WARNING: line length of 82 exceeds 80 columns #140: FILE: tools/lib/bpf/libbpf.c:11685: + const char *sym_name, const char *module_name, void *ctx) CHECK: Comparison to NULL could be written "module_name" #145: FILE: tools/lib/bpf/libbpf.c:11690: + if (module_name != NULL) CHECK: Blank lines aren't necessary after an open brace '{' #154: FILE: tools/lib/bpf/libbpf.c:11699: + if (strcmp(sym_name, data->func_name) == 0) { + CHECK: Alignment should match open parenthesis #161: FILE: tools/lib/bpf/libbpf.c:11706: + 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 #207: FILE: tools/lib/bpf/libbpf.c:11777: + pfd = perf_event_kprobe_open_legacy(legacy_probe, retprobe, optional_func_name, WARNING: line length of 98 exceeds 80 columns #224: FILE: tools/lib/bpf/libbpf.c:11795: + if ((err == -EADDRNOTAVAIL || (legacy && err == -EINVAL)) && optional_func_name) { WARNING: line length of 86 exceeds 80 columns #263: FILE: tools/lib/bpf/libbpf.c:11941: + const char *sym_name, const char *module_name, void *ctx) total: 0 errors, 17 warnings, 3 checks, 225 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 af2290c341eb ("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, 17 warnings, 3 checks, 225 lines checked