CHECK: struct mutex definition without comment #60: FILE: include/linux/bpf.h:1721: + struct mutex st_ops_assoc_mutex; WARNING: line length of 87 exceeds 80 columns #79: FILE: include/linux/bpf.h:2073: +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 #79: FILE: include/linux/bpf.h:2073: } +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 #83: FILE: include/linux/bpf.h:2077: +} +static inline void bpf_prog_disassoc_struct_ops(struct bpf_prog *prog) WARNING: line length of 81 exceeds 80 columns #86: FILE: include/linux/bpf.h:2080: +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 #86: FILE: include/linux/bpf.h:2080: +} +static inline void *bpf_prog_get_assoc_struct_ops(const struct bpf_prog_aux *aux) WARNING: please, no space before tabs #102: FILE: include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #103: 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 #104: 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 #105: FILE: include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #107: FILE: include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #108: 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 #109: FILE: include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ WARNING: line length of 90 exceeds 80 columns #260: FILE: kernel/bpf/bpf_struct_ops.c:1486: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) { WARNING: memory barrier without comment #260: FILE: kernel/bpf/bpf_struct_ops.c:1486: + if (smp_load_acquire(&st_map->kvalue.common.state) == BPF_STRUCT_OPS_STATE_INIT) { WARNING: please, no space before tabs #373: FILE: tools/include/uapi/linux/bpf.h:922: + * ^IDescription$ WARNING: please, no space before tabs #374: 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 #375: 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 #376: FILE: tools/include/uapi/linux/bpf.h:925: + * ^I^Iidentified by *prog_fd*.$ WARNING: please, no space before tabs #378: FILE: tools/include/uapi/linux/bpf.h:927: + * ^IReturn$ WARNING: please, no space before tabs #379: 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 #380: FILE: tools/include/uapi/linux/bpf.h:929: + * ^I^I*errno* is set appropriately).$ total: 0 errors, 18 warnings, 4 checks, 311 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 87173a84b80e ("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, 311 lines checked