WARNING: line length of 81 exceeds 80 columns #64: FILE: arch/x86/net/bpf_jit_comp.c:2262: + using_native_sched_clock() && sched_clock_stable()) { WARNING: line length of 89 exceeds 80 columns #66: FILE: arch/x86/net/bpf_jit_comp.c:2264: + * ktime_get_raw_ns() which effectively is implemented as WARNING: line length of 84 exceeds 80 columns #67: FILE: arch/x86/net/bpf_jit_comp.c:2265: + * `(u64)rdtsc_ordered() & S64_MAX`. For JIT We skip WARNING: line length of 88 exceeds 80 columns #68: FILE: arch/x86/net/bpf_jit_comp.c:2266: + * masking part because we assume it's not needed in BPF WARNING: line length of 83 exceeds 80 columns #70: FILE: arch/x86/net/bpf_jit_comp.c:2268: + * Original code for rdtsc_ordered() uses sequence: WARNING: line length of 89 exceeds 80 columns #72: FILE: arch/x86/net/bpf_jit_comp.c:2270: + * 'lfence; rdtsc' or 'rdtscp' depending on CPU features. WARNING: line length of 87 exceeds 80 columns #73: FILE: arch/x86/net/bpf_jit_comp.c:2271: + * JIT uses 'lfence; rdtsc' variant because BPF program WARNING: line length of 87 exceeds 80 columns #74: FILE: arch/x86/net/bpf_jit_comp.c:2272: + * doesn't care about cookie provided by rdtscp in RCX. WARNING: line length of 88 exceeds 80 columns #75: FILE: arch/x86/net/bpf_jit_comp.c:2273: + * Save RDX because RDTSC will use EDX:EAX to return u64 WARNING: line length of 82 exceeds 80 columns #78: FILE: arch/x86/net/bpf_jit_comp.c:2276: + if (cpu_feature_enabled(X86_FEATURE_LFENCE_RDTSC)) WARNING: line length of 82 exceeds 80 columns #86: FILE: arch/x86/net/bpf_jit_comp.c:2284: + maybe_emit_mod(&prog, BPF_REG_0, BPF_REG_3, true); WARNING: line length of 82 exceeds 80 columns #87: FILE: arch/x86/net/bpf_jit_comp.c:2285: + EMIT2(0x09, add_2reg(0xC0, BPF_REG_0, BPF_REG_3)); WARNING: line length of 86 exceeds 80 columns #130: FILE: arch/x86/net/bpf_jit_comp32.c:2099: + imm32 == BPF_CALL_IMM(bpf_get_cpu_time_counter) && WARNING: line length of 89 exceeds 80 columns #132: FILE: arch/x86/net/bpf_jit_comp32.c:2101: + using_native_sched_clock() && sched_clock_stable()) { WARNING: line length of 88 exceeds 80 columns #133: FILE: arch/x86/net/bpf_jit_comp32.c:2102: + /* The default implementation of this kfunc uses WARNING: line length of 97 exceeds 80 columns #134: FILE: arch/x86/net/bpf_jit_comp32.c:2103: + * ktime_get_raw_ns() which effectively is implemented as WARNING: line length of 92 exceeds 80 columns #135: FILE: arch/x86/net/bpf_jit_comp32.c:2104: + * `(u64)rdtsc_ordered() & S64_MAX`. For JIT We skip WARNING: line length of 96 exceeds 80 columns #136: FILE: arch/x86/net/bpf_jit_comp32.c:2105: + * masking part because we assume it's not needed in BPF WARNING: line length of 85 exceeds 80 columns #137: FILE: arch/x86/net/bpf_jit_comp32.c:2106: + * use case (two measurements close in time). WARNING: line length of 91 exceeds 80 columns #138: FILE: arch/x86/net/bpf_jit_comp32.c:2107: + * Original code for rdtsc_ordered() uses sequence: WARNING: line length of 82 exceeds 80 columns #139: FILE: arch/x86/net/bpf_jit_comp32.c:2108: + * 'rdtsc; nop; nop; nop' to patch it into WARNING: line length of 97 exceeds 80 columns #140: FILE: arch/x86/net/bpf_jit_comp32.c:2109: + * 'lfence; rdtsc' or 'rdtscp' depending on CPU features. WARNING: line length of 95 exceeds 80 columns #141: FILE: arch/x86/net/bpf_jit_comp32.c:2110: + * JIT uses 'lfence; rdtsc' variant because BPF program WARNING: line length of 95 exceeds 80 columns #142: FILE: arch/x86/net/bpf_jit_comp32.c:2111: + * doesn't care about cookie provided by rdtscp in ECX. WARNING: line length of 90 exceeds 80 columns #144: FILE: arch/x86/net/bpf_jit_comp32.c:2113: + if (cpu_feature_enabled(X86_FEATURE_LFENCE_RDTSC)) WARNING: line length of 83 exceeds 80 columns #295: FILE: kernel/bpf/verifier.c:21272: + if (desc->func_id == special_kfunc_list[KF_bpf_cast_to_kern_ctx] || WARNING: line length of 97 exceeds 80 columns #300: FILE: kernel/bpf/verifier.c:21277: + verbose(env, "verifier internal error: kfunc id %d has no inline code\n", total: 0 errors, 27 warnings, 0 checks, 232 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 7ad7b2209aaf ("bpf: add bpf_get_cpu_time_counter kfunc") 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, 27 warnings, 0 checks, 232 lines checked