CHECK: struct mutex definition without comment #45: FILE: include/linux/bpf.h:1720: + struct mutex st_ops_assoc_mutex; WARNING: line length of 88 exceeds 80 columns #63: FILE: include/linux/bpf.h:2071: +static inline void bpf_struct_ops_assoc_prog(struct bpf_map *map, struct bpf_prog *prog) CHECK: Please use a blank line after function/struct/union/enum declarations #63: FILE: include/linux/bpf.h:2071: } +static inline void bpf_struct_ops_assoc_prog(struct bpf_map *map, struct bpf_prog *prog) CHECK: Please use a blank line after function/struct/union/enum declarations #67: FILE: include/linux/bpf.h:2075: +} +static inline void bpf_struct_ops_disassoc_prog(struct bpf_prog *prog) WARNING: please, no space before tabs #82: FILE: include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #83: 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 #84: 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 #85: FILE: include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #87: FILE: include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #88: 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 #89: FILE: include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ WARNING: line length of 82 exceeds 80 columns #130: FILE: kernel/bpf/bpf_struct_ops.c:805: + /* Don't stop a program from being reused. prog->aux->st_ops_assoc WARNING: please, no space before tabs #267: FILE: tools/include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #268: 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 #269: 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 #270: FILE: tools/include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #272: FILE: tools/include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #273: 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 #274: FILE: tools/include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ total: 0 errors, 16 warnings, 3 checks, 221 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 4de1d75c6e01 ("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, 16 warnings, 3 checks, 221 lines checked