WARNING: line length of 87 exceeds 80 columns #35: FILE: kernel/bpf/verifier.c:20188: + * u64 bpf_get_branch_snapshot(void *buf, u32 size, u64 flags); WARNING: line length of 102 exceeds 80 columns #36: FILE: kernel/bpf/verifier.c:20189: + * int perf_snapshot_branch_stack(struct perf_branch_entry *entries, u32 cnt); WARNING: line length of 83 exceeds 80 columns #38: FILE: kernel/bpf/verifier.c:20191: + const u32 br_entry_size = sizeof(struct perf_branch_entry); WARNING: line length of 91 exceeds 80 columns #49: FILE: kernel/bpf/verifier.c:20202: + /* Transform size (bytes) into number of entries (cnt = size / 24). WARNING: line length of 84 exceeds 80 columns #50: FILE: kernel/bpf/verifier.c:20203: + * But to avoid expensive division instruction, we implement WARNING: line length of 82 exceeds 80 columns #51: FILE: kernel/bpf/verifier.c:20204: + * divide-by-3 through multiplication, followed by further WARNING: line length of 93 exceeds 80 columns #53: FILE: kernel/bpf/verifier.c:20206: + * Refer to book "Hacker's Delight, 2nd ed." by Henry S. Warren, Jr., WARNING: line length of 90 exceeds 80 columns #54: FILE: kernel/bpf/verifier.c:20207: + * p. 227, chapter "Unsigned Divison by 3" for details and proofs. WARNING: line length of 89 exceeds 80 columns #56: FILE: kernel/bpf/verifier.c:20209: + * N / 3 <=> M * N / 2^33, where M = (2^33 + 1) / 3 = 0xaaaaaaab. WARNING: line length of 83 exceeds 80 columns #59: FILE: kernel/bpf/verifier.c:20212: + insn_buf[2] = BPF_ALU64_REG(BPF_MUL, BPF_REG_2, BPF_REG_0); WARNING: line length of 99 exceeds 80 columns #63: FILE: kernel/bpf/verifier.c:20216: + insn_buf[4] = BPF_EMIT_CALL(static_call_query(perf_snapshot_branch_stack)); WARNING: line length of 81 exceeds 80 columns #66: FILE: kernel/bpf/verifier.c:20219: + /* return entry_cnt * sizeof(struct perf_branch_entry) */ WARNING: line length of 87 exceeds 80 columns #67: FILE: kernel/bpf/verifier.c:20220: + insn_buf[6] = BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, br_entry_size); WARNING: line length of 86 exceeds 80 columns #76: FILE: kernel/bpf/verifier.c:20229: + new_prog = bpf_patch_insn_data(env, i + delta, insn_buf, cnt); CHECK: multiple assignments should be avoided #81: FILE: kernel/bpf/verifier.c:20234: + env->prog = prog = new_prog; total: 0 errors, 14 warnings, 1 checks, 61 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 d58f29ffd30c ("bpf: inline bpf_get_branch_snapshot() helper") 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, 14 warnings, 1 checks, 61 lines checked