WARNING: line length of 84 exceeds 80 columns #136: FILE: kernel/bpf/const_fold.c:18: + CONST_ARG_MAP_PTR, /* register holds a map pointer, map_index is set */ WARNING: line length of 86 exceeds 80 columns #137: FILE: kernel/bpf/const_fold.c:19: + CONST_ARG_MAP_VALUE, /* register points to map value data, val is offset */ WARNING: line length of 93 exceeds 80 columns #138: FILE: kernel/bpf/const_fold.c:20: + CONST_ARG_SUBPROG, /* register holds a subprog pointer, val is subprog number */ WARNING: line length of 87 exceeds 80 columns #168: FILE: kernel/bpf/const_fold.c:50: +static void const_reg_xfer(struct bpf_verifier_env *env, struct const_arg_info *ci_out, WARNING: line length of 82 exceeds 80 columns #169: FILE: kernel/bpf/const_fold.c:51: + struct bpf_insn *insn, struct bpf_insn *insns, int idx) WARNING: line length of 81 exceeds 80 columns #171: FILE: kernel/bpf/const_fold.c:53: + struct const_arg_info unknown = { .state = CONST_ARG_UNKNOWN, .val = 0 }; ERROR: trailing statements should be on next line #196: FILE: kernel/bpf/const_fold.c:78: + case 8: dst->val = (s8)dst->val; break; ERROR: trailing statements should be on next line #197: FILE: kernel/bpf/const_fold.c:79: + case 16: dst->val = (s16)dst->val; break; ERROR: trailing statements should be on next line #198: FILE: kernel/bpf/const_fold.c:80: + case 32: dst->val = (s32)dst->val; break; ERROR: trailing statements should be on next line #199: FILE: kernel/bpf/const_fold.c:81: + default: *dst = unknown; break; WARNING: line length of 81 exceeds 80 columns #259: FILE: kernel/bpf/const_fold.c:141: + int subprog = bpf_find_subprog(env, idx + insn->imm + 1); WARNING: line length of 94 exceeds 80 columns #278: FILE: kernel/bpf/const_fold.c:160: + dst->val = (u64)(u32)insn->imm | ((u64)(u32)insns[idx + 1].imm << 32); WARNING: line length of 82 exceeds 80 columns #294: FILE: kernel/bpf/const_fold.c:176: + if (!bpf_map_is_rdonly(map) || !map->ops->map_direct_value_addr || WARNING: line length of 81 exceeds 80 columns #350: FILE: kernel/bpf/const_fold.c:232: + struct const_arg_info unknown = { .state = CONST_ARG_UNKNOWN, .val = 0 }; WARNING: line length of 85 exceeds 80 columns #360: FILE: kernel/bpf/const_fold.c:242: + /* kvzalloc zeroes memory, so all entries start as CONST_ARG_UNVISITED (0) */ WARNING: line length of 85 exceeds 80 columns #365: FILE: kernel/bpf/const_fold.c:247: + /* Subprogram entries (including main at subprog 0): all registers unknown */ WARNING: line length of 81 exceeds 80 columns #386: FILE: kernel/bpf/const_fold.c:268: + changed |= const_reg_join(ci_in[succ->items[s]], ci_out); WARNING: line length of 88 exceeds 80 columns #489: FILE: kernel/bpf/const_fold.c:371: + * The (s32) cast maps the 32-bit range into two u64 sub-ranges: WARNING: line length of 95 exceeds 80 columns #490: FILE: kernel/bpf/const_fold.c:372: + * [0x00000000, 0x7FFFFFFF] -> [0x0000000000000000, 0x000000007FFFFFFF] WARNING: line length of 95 exceeds 80 columns #491: FILE: kernel/bpf/const_fold.c:373: + * [0x80000000, 0xFFFFFFFF] -> [0xFFFFFFFF80000000, 0xFFFFFFFFFFFFFFFF] WARNING: line length of 88 exceeds 80 columns #501: FILE: kernel/bpf/const_fold.c:383: + bpf_log(&env->log, "Unknown conditional jump %x\n", insn->code); WARNING: line length of 88 exceeds 80 columns #559: FILE: kernel/bpf/verifier.c:3793: + callee = bpf_find_subprog(env, idx + insn[idx].imm + 1); WARNING: line length of 83 exceeds 80 columns #652: FILE: kernel/bpf/verifier.c:21541: + /* Sanity check: precomputed constants must match verifier state */ WARNING: line length of 87 exceeds 80 columns #666: FILE: kernel/bpf/verifier.c:21555: + if (verifier_bug_if((u32)regs[r].var_off.value != cval, WARNING: line length of 81 exceeds 80 columns #667: FILE: kernel/bpf/verifier.c:21556: + env, "const R%d: %u != %llu", WARNING: line length of 84 exceeds 80 columns #668: FILE: kernel/bpf/verifier.c:21557: + r, cval, regs[r].var_off.value)) WARNING: line length of 86 exceeds 80 columns #717: FILE: kernel/bpf/verifier.c:23896: + if (bpf_is_may_goto_insn(insn) && bpf_jit_supports_timed_may_goto()) { WARNING: line length of 81 exceeds 80 columns #776: FILE: tools/testing/selftests/bpf/progs/verifier_scalar_ids.c:608: + "r1 ^= r1;" /* prevent bpf_prune_dead_branches from folding the branch */ WARNING: line length of 81 exceeds 80 columns #808: FILE: tools/testing/selftests/bpf/progs/verifier_scalar_ids.c:647: + "w1 ^= w1;" /* prevent bpf_prune_dead_branches from folding the branch */ total: 4 errors, 25 warnings, 0 checks, 747 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 650dc68f662b ("bpf: Add bpf_compute_const_regs() and bpf_prune_dead_branches() passes") 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.