CHECK: No space is necessary after a cast #46: FILE: tools/lib/bpf/bpf.c:412: + flags = ((__u64) cpu) << 32 | OPTS_GET(opts, flags, 0); CHECK: No space is necessary after a cast #64: FILE: tools/lib/bpf/bpf.c:454: + flags = ((__u64) cpu) << 32 | OPTS_GET(opts, flags, 0); WARNING: line length of 83 exceeds 80 columns #97: FILE: tools/lib/bpf/bpf.h:176: +LIBBPF_API int bpf_map_update_elem_opts(int fd, const void *key, const void *value, WARNING: line length of 85 exceeds 80 columns #98: FILE: tools/lib/bpf/bpf.h:177: + const struct bpf_map_update_elem_opts *opts); WARNING: line length of 85 exceeds 80 columns #112: FILE: tools/lib/bpf/bpf.h:191: + const struct bpf_map_lookup_elem_opts *opts); CHECK: Please don't use multiple blank lines #114: FILE: tools/lib/bpf/bpf.h:193: + + CHECK: Please use a blank line after function/struct/union/enum declarations #123: FILE: tools/lib/bpf/bpf.h:201: }; +#define bpf_map_batch_opts__last_field cpu WARNING: line length of 92 exceeds 80 columns #284: FILE: tools/lib/bpf/libbpf.h:1187: + * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size** WARNING: line length of 86 exceeds 80 columns #303: FILE: tools/lib/bpf/libbpf.h:1206: + const struct bpf_map_lookup_elem_opts *opts); WARNING: line length of 81 exceeds 80 columns #313: FILE: tools/lib/bpf/libbpf.h:1233: + * @brief **bpf_map__update_elem_opts()** allows to insert or update value in BPF WARNING: line length of 92 exceeds 80 columns #317: FILE: tools/lib/bpf/libbpf.h:1237: + * @param key_sz size in bytes of key data, needs to match BPF map definition's **key_size** WARNING: line length of 86 exceeds 80 columns #329: FILE: tools/lib/bpf/libbpf.h:1249: + const struct bpf_map_update_elem_opts *opts); total: 0 errors, 8 warnings, 4 checks, 302 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 797b9f46789d ("bpf, libbpf: Support BPF_F_CPU for percpu_array map") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE 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, 8 warnings, 4 checks, 302 lines checked