CHECK: struct mutex definition without comment #61: FILE: include/linux/bpf.h:1730: + struct mutex st_ops_assoc_mutex; WARNING: line length of 87 exceeds 80 columns #80: FILE: include/linux/bpf.h:2084: +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 #80: FILE: include/linux/bpf.h:2084: } +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 #84: FILE: include/linux/bpf.h:2088: +} +static inline void bpf_prog_disassoc_struct_ops(struct bpf_prog *prog) WARNING: line length of 81 exceeds 80 columns #87: FILE: include/linux/bpf.h:2091: +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 #87: FILE: include/linux/bpf.h:2091: +} +static inline void *bpf_prog_get_assoc_struct_ops(const struct bpf_prog_aux *aux) WARNING: please, no space before tabs #103: FILE: include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #104: 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 #105: 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 #106: FILE: include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #108: FILE: include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #109: 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 #110: FILE: include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ WARNING: line length of 90 exceeds 80 columns #162: FILE: kernel/bpf/bpf_struct_ops.c:815: + /* Poison pointer on error instead of return for backward compatibility */ WARNING: line length of 98 exceeds 80 columns #188: FILE: kernel/bpf/bpf_struct_ops.c:1420: + lockdep_is_held(&prog->aux->st_ops_assoc_mutex)); WARNING: line length of 84 exceeds 80 columns #199: FILE: kernel/bpf/bpf_struct_ops.c:1431: + * struct_ops map does not track associated non-struct_ops programs. WARNING: line length of 98 exceeds 80 columns #218: FILE: kernel/bpf/bpf_struct_ops.c:1450: + lockdep_is_held(&prog->aux->st_ops_assoc_mutex)); WARNING: line length of 85 exceeds 80 columns #243: FILE: kernel/bpf/bpf_struct_ops.c:1475: + st_ops_assoc = rcu_dereference_check(aux->st_ops_assoc, bpf_rcu_lock_held()); WARNING: please, no space before tabs #357: FILE: tools/include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #358: 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 #359: 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 #360: FILE: tools/include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #362: FILE: tools/include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #363: 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 #364: FILE: tools/include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ total: 0 errors, 21 warnings, 4 checks, 295 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 d85ed106ecb4 ("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, 21 warnings, 4 checks, 295 lines checked