CHECK: Please use a blank line after function/struct/union/enum declarations #36: FILE: tools/lib/bpf/libbpf.h:1789: }; +#define bpf_linker_opts__last_field filename CHECK: Please use a blank line after function/struct/union/enum declarations #44: FILE: tools/lib/bpf/libbpf.h:1796: }; +#define bpf_linker_file_opts__last_field filename WARNING: line length of 87 exceeds 80 columns #49: FILE: tools/lib/bpf/libbpf.h:1801: +LIBBPF_API struct bpf_linker *bpf_linker__new_fd(int fd, struct bpf_linker_opts *opts); WARNING: line length of 81 exceeds 80 columns #152: FILE: tools/lib/bpf/linker.c:296: + snprintf(linker->filename, LINKER_MAX_FD_NAME_SIZE, "fd:%d", fd); WARNING: line length of 82 exceeds 80 columns #246: FILE: tools/lib/bpf/linker.c:576: + pr_warn("failed to create memfd '%s': %s\n", name, errstr(errno)); WARNING: line length of 83 exceeds 80 columns #254: FILE: tools/lib/bpf/linker.c:584: + pr_warn("failed to write '%s': %s\n", name, errstr(errno)); total: 0 errors, 4 warnings, 2 checks, 237 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 cd8d6b03f53e ("libbpf: Extend linker API to support in-memory ELF files") 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, 4 warnings, 2 checks, 237 lines checked