WARNING: line length of 88 exceeds 80 columns #125: FILE: tools/lib/bpf/libbpf.c:3971: + memcpy(obj->jumptables_data, data->d_buf, data->d_size); WARNING: line length of 83 exceeds 80 columns #152: FILE: tools/lib/bpf/libbpf.c:6140: +static int create_jt_map(struct bpf_object *obj, int off, int size, int adjust_off) CHECK: spaces preferred around that '/' (ctx:VxV) #185: FILE: tools/lib/bpf/libbpf.c:6173: + xlated_off = jt[i]/sizeof(struct bpf_insn) + adjust_off; ^ WARNING: line length of 93 exceeds 80 columns #214: FILE: tools/lib/bpf/libbpf.c:6202: + return prog->subprog[i].sub_insn_off - prog->subprog[i].sec_insn_off; CHECK: Please don't use multiple blank lines #219: FILE: tools/lib/bpf/libbpf.c:6207: + + WARNING: line length of 82 exceeds 80 columns #230: FILE: tools/lib/bpf/libbpf.c:6302: + map_fd = create_jt_map(obj, relo->sym_off, relo->sym_size, WARNING: line length of 84 exceeds 80 columns #231: FILE: tools/lib/bpf/libbpf.c:6303: + jt_adjust_off(prog, relo->insn_idx)); CHECK: Alignment should match open parenthesis #234: FILE: tools/lib/bpf/libbpf.c:6306: + pr_warn("prog '%s': relo #%d: can't create jump table: sym_off %u\n", + prog->name, i, relo->sym_off); WARNING: line length of 91 exceeds 80 columns #249: FILE: tools/lib/bpf/libbpf.c:6511: +static int save_subprog_offsets(struct bpf_program *main_prog, struct bpf_program *subprog) WARNING: line length of 87 exceeds 80 columns #278: FILE: tools/lib/bpf/libbpf.c:6562: + pr_warn("prog '%s': failed to add subprog offsets\n", main_prog->name); WARNING: line length of 91 exceeds 80 columns #339: FILE: tools/lib/bpf/linker.c:2280: + } else if (strcmp(src_sec->sec_name, JUMPTABLES_REL_SEC)) { total: 0 errors, 8 warnings, 3 checks, 284 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 8f0aca05d720 ("libbpf: support llvm-generated indirect jumps") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE 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, 8 warnings, 3 checks, 284 lines checked