WARNING: line length of 96 exceeds 80 columns #358: FILE: kernel/bpf/ringbuf.c:172: +static struct bpf_ringbuf *bpf_ringbuf_alloc(size_t data_sz, int numa_node, bool overwrite_mode) WARNING: line length of 97 exceeds 80 columns #393: FILE: kernel/bpf/ringbuf.c:219: + rb_map->rb = bpf_ringbuf_alloc(attr->max_entries, rb_map->map.numa_node, overwrite_mode); WARNING: memory barrier without comment #416: FILE: kernel/bpf/ringbuf.c:319: + over_pos = smp_load_acquire(&rb->overwrite_pos); WARNING: memory barrier without comment #417: FILE: kernel/bpf/ringbuf.c:320: + prod_pos = smp_load_acquire(&rb->producer_pos); WARNING: else is not generally useful after a break or return #419: FILE: kernel/bpf/ringbuf.c:322: + return prod_pos - max(cons_pos, over_pos); + } else { WARNING: memory barrier without comment #420: FILE: kernel/bpf/ringbuf.c:323: + prod_pos = smp_load_acquire(&rb->producer_pos); WARNING: line length of 82 exceeds 80 columns #463: FILE: kernel/bpf/ringbuf.c:460: + unsigned long cons_pos, prod_pos, new_prod_pos, pend_pos, over_pos, flags; WARNING: line length of 81 exceeds 80 columns #494: FILE: kernel/bpf/ringbuf.c:494: + /* In overwrite mode, advance overwrite_pos when the ring buffer is full. WARNING: line length of 85 exceeds 80 columns #495: FILE: kernel/bpf/ringbuf.c:495: + * The key points are to stay on record boundaries and consume enough records WARNING: line length of 85 exceeds 80 columns #503: FILE: kernel/bpf/ringbuf.c:503: + /* The bpf_ringbuf_has_space() check above ensures we won’t WARNING: line length of 82 exceeds 80 columns #504: FILE: kernel/bpf/ringbuf.c:504: + * step over a record currently being worked on by another WARNING: memory barrier without comment #527: FILE: kernel/bpf/ringbuf.c:649: + return smp_load_acquire(&rb->overwrite_pos); total: 0 errors, 12 warnings, 0 checks, 226 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 650c061662da ("bpf: Add overwrite mode for BPF ring buffer") 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. total: 0 errors, 12 warnings, 0 checks, 226 lines checked