CHECK: struct mutex definition without comment #58: FILE: include/linux/bpf.h:1729: + struct mutex st_ops_assoc_mutex; WARNING: line length of 87 exceeds 80 columns #77: FILE: include/linux/bpf.h:2081: +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 #77: FILE: include/linux/bpf.h:2081: } +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 #81: FILE: include/linux/bpf.h:2085: +} +static inline void bpf_prog_disassoc_struct_ops(struct bpf_prog *prog) WARNING: line length of 81 exceeds 80 columns #84: FILE: include/linux/bpf.h:2088: +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 #84: FILE: include/linux/bpf.h:2088: +} +static inline void *bpf_prog_get_assoc_struct_ops(const struct bpf_prog_aux *aux) WARNING: please, no space before tabs #100: FILE: include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #101: 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 #102: 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 #103: FILE: include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #105: FILE: include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #106: 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 #107: FILE: include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ WARNING: line length of 90 exceeds 80 columns #243: FILE: kernel/bpf/bpf_struct_ops.c:1478: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) { WARNING: memory barrier without comment #243: FILE: kernel/bpf/bpf_struct_ops.c:1478: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) { WARNING: please, no space before tabs #356: FILE: tools/include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #357: 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 #358: 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 #359: FILE: tools/include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #361: FILE: tools/include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #362: 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 #363: FILE: tools/include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ total: 0 errors, 18 warnings, 4 checks, 297 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 90f0e16d74cc ("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, 297 lines checked