WARNING: line length of 87 exceeds 80 columns #34: FILE: kernel/bpf/verifier.c:20164: + * u64 bpf_get_branch_snapshot(void *buf, u32 size, u64 flags); WARNING: line length of 102 exceeds 80 columns #35: FILE: kernel/bpf/verifier.c:20165: + * int perf_snapshot_branch_stack(struct perf_branch_entry *entries, u32 cnt); WARNING: line length of 83 exceeds 80 columns #37: FILE: kernel/bpf/verifier.c:20167: + const u32 br_entry_size = sizeof(struct perf_branch_entry); WARNING: line length of 91 exceeds 80 columns #48: FILE: kernel/bpf/verifier.c:20178: + /* Transform size (bytes) into number of entries (cnt = size / 24). WARNING: line length of 84 exceeds 80 columns #49: FILE: kernel/bpf/verifier.c:20179: + * But to avoid expensive division instruction, we implement WARNING: line length of 82 exceeds 80 columns #50: FILE: kernel/bpf/verifier.c:20180: + * divide-by-3 through multiplication, followed by further WARNING: line length of 93 exceeds 80 columns #52: FILE: kernel/bpf/verifier.c:20182: + * Refer to book "Hacker's Delight, 2nd ed." by Henry S. Warren, Jr., WARNING: line length of 90 exceeds 80 columns #53: FILE: kernel/bpf/verifier.c:20183: + * p. 227, chapter "Unsigned Divison by 3" for details and proofs. WARNING: line length of 89 exceeds 80 columns #55: FILE: kernel/bpf/verifier.c:20185: + * N / 3 <=> M * N / 2^33, where M = (2^33 + 1) / 3 = 0xaaaaaaab. WARNING: line length of 99 exceeds 80 columns #62: FILE: kernel/bpf/verifier.c:20192: + insn_buf[4] = BPF_EMIT_CALL(static_call_query(perf_snapshot_branch_stack)); WARNING: line length of 81 exceeds 80 columns #65: FILE: kernel/bpf/verifier.c:20195: + /* return entry_cnt * sizeof(struct perf_branch_entry) */ WARNING: line length of 87 exceeds 80 columns #66: FILE: kernel/bpf/verifier.c:20196: + insn_buf[6] = BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, br_entry_size); WARNING: line length of 86 exceeds 80 columns #75: FILE: kernel/bpf/verifier.c:20205: + new_prog = bpf_patch_insn_data(env, i + delta, insn_buf, cnt); CHECK: multiple assignments should be avoided #80: FILE: kernel/bpf/verifier.c:20210: + env->prog = prog = new_prog; total: 0 errors, 13 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 a247d52eef87 ("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, 13 warnings, 1 checks, 61 lines checked