CHECK: Alignment should match open parenthesis #61: FILE: tools/lib/bpf/libbpf.c:4616: +static int find_progs_by_sec_insn(const struct bpf_object *obj, + size_t sec_idx, size_t insn_idx, WARNING: line length of 83 exceeds 80 columns #80: FILE: tools/lib/bpf/libbpf.c:4635: + /* there may be multiple (aliasing) programs sharing the same instructions, WARNING: line length of 90 exceeds 80 columns #90: FILE: tools/lib/bpf/libbpf.c:4642: + while (l >= 0 && prog->sec_idx == sec_idx && prog_contains_insn(prog, insn_idx)) { WARNING: line length of 81 exceeds 80 columns #115: FILE: tools/lib/bpf/libbpf.c:4726: + nr_progs = find_progs_by_sec_insn(obj, sec_idx, insn_idx, &prog); WARNING: line length of 81 exceeds 80 columns #130: FILE: tools/lib/bpf/libbpf.c:4734: + * we can just do it once as all progs have the same sec_insn_off WARNING: line length of 88 exceeds 80 columns #141: FILE: tools/lib/bpf/libbpf.c:4740: + prog->nr_reloc + 1, sizeof(*relos)); WARNING: line length of 85 exceeds 80 columns #146: FILE: tools/lib/bpf/libbpf.c:4745: + /* adjust insn_idx to local BPF program frame of reference */ WARNING: line length of 85 exceeds 80 columns #147: FILE: tools/lib/bpf/libbpf.c:4746: + err = bpf_program__record_reloc(prog, &relos[prog->nr_reloc], WARNING: line length of 86 exceeds 80 columns #148: FILE: tools/lib/bpf/libbpf.c:4747: + insn_idx, sym_name, sym, rel); WARNING: line length of 89 exceeds 80 columns #172: FILE: tools/lib/bpf/libbpf.c:5916: + nr_progs = find_progs_by_sec_insn(obj, sec_idx, insn_idx, &prog); WARNING: line length of 88 exceeds 80 columns #190: FILE: tools/lib/bpf/libbpf.c:5933: + * relocated, so it's enough to just subtract in-section offset; WARNING: line length of 89 exceeds 80 columns #191: FILE: tools/lib/bpf/libbpf.c:5934: + * we can just do it once as all progs have the same sec_insn_off WARNING: line length of 86 exceeds 80 columns #205: FILE: tools/lib/bpf/libbpf.c:5941: + /* no need to apply CO-RE relocation if the program is WARNING: line length of 107 exceeds 80 columns #236: FILE: tools/lib/bpf/libbpf.c:5959: + err = bpf_core_resolve_relo(prog, rec, i, obj->btf, cand_cache, &targ_res); WARNING: line length of 105 exceeds 80 columns #243: FILE: tools/lib/bpf/libbpf.c:5966: + err = bpf_core_patch_insn(prog->name, insn, insn_idx, rec, i, &targ_res); WARNING: line length of 105 exceeds 80 columns #267: FILE: tools/lib/bpf/libbpf.c:6428: + nr_subprogs = find_progs_by_sec_insn(obj, obj->efile.text_shndx, sub_insn_idx, &subprog); WARNING: line length of 82 exceeds 80 columns #294: FILE: tools/lib/bpf/libbpf.c:9816: + nr_progs = find_progs_by_sec_insn(obj, shdr_idx, insn_idx, &prog); total: 0 errors, 16 warnings, 1 checks, 241 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 8cabcb72b53e ("libbpf: Handle relocations in aliased symbols") 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, 16 warnings, 1 checks, 241 lines checked