CHECK: struct mutex definition without comment #51: FILE: include/linux/bpf.h:1720: + struct mutex st_ops_assoc_mutex; WARNING: line length of 87 exceeds 80 columns #70: FILE: include/linux/bpf.h:2072: +static inline int bpf_prog_assoc_struct_ops(struct bpf_prog *prog, struct bpf_map *map) CHECK: Please use a blank line after function/struct/union/enum declarations #70: FILE: include/linux/bpf.h:2072: } +static inline int bpf_prog_assoc_struct_ops(struct bpf_prog *prog, struct bpf_map *map) CHECK: Please use a blank line after function/struct/union/enum declarations #74: FILE: include/linux/bpf.h:2076: +} +static inline void bpf_prog_disassoc_struct_ops(struct bpf_prog *prog) WARNING: line length of 81 exceeds 80 columns #77: FILE: include/linux/bpf.h:2079: +static inline void *bpf_prog_get_assoc_struct_ops(const struct bpf_prog_aux *aux) CHECK: Please use a blank line after function/struct/union/enum declarations #77: FILE: include/linux/bpf.h:2079: +} +static inline void *bpf_prog_get_assoc_struct_ops(const struct bpf_prog_aux *aux) WARNING: please, no space before tabs #93: FILE: include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #94: FILE: include/uapi/linux/bpf.h:923: + * ^I^IAssociate a BPF program with a struct_ops map. The struct_ops$ WARNING: please, no space before tabs #95: FILE: include/uapi/linux/bpf.h:924: + * ^I^Imap is identified by *map_fd* and the BPF program is$ WARNING: please, no space before tabs #96: FILE: include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #98: FILE: include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #99: FILE: include/uapi/linux/bpf.h:928: + * ^I^I0 on success or -1 if an error occurred (in which case,$ WARNING: please, no space before tabs #100: FILE: include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ WARNING: line length of 88 exceeds 80 columns #211: FILE: kernel/bpf/bpf_struct_ops.c:1460: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) WARNING: memory barrier without comment #211: FILE: kernel/bpf/bpf_struct_ops.c:1460: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) WARNING: please, no space before tabs #322: FILE: tools/include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #323: FILE: tools/include/uapi/linux/bpf.h:923: + * ^I^IAssociate a BPF program with a struct_ops map. The struct_ops$ WARNING: please, no space before tabs #324: FILE: tools/include/uapi/linux/bpf.h:924: + * ^I^Imap is identified by *map_fd* and the BPF program is$ WARNING: please, no space before tabs #325: FILE: tools/include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #327: FILE: tools/include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #328: FILE: tools/include/uapi/linux/bpf.h:928: + * ^I^I0 on success or -1 if an error occurred (in which case,$ WARNING: please, no space before tabs #329: FILE: tools/include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ total: 0 errors, 18 warnings, 4 checks, 271 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 b663d42c2fc8 ("bpf: Support associating BPF program with struct_ops") 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, 18 warnings, 4 checks, 271 lines checked