WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #40: new file mode 100644 ERROR: Macros with complex values should be enclosed in parentheses #67: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:23: +#define BTF_TYPE_ENC(name, info, size_or_type) (name), (info), (size_or_type) ERROR: Macros with complex values should be enclosed in parentheses #70: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:26: +#define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ + BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_INT, 0, 0), sz), \ + BTF_INT_ENC(encoding, bits_offset, bits) WARNING: line length of 81 exceeds 80 columns #91: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:47: + BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 64, 8), /* [1] */ WARNING: line length of 86 exceeds 80 columns #117: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:73: +static inline int bpf_prog_get_map_ids(int prog_fd, __u32 *nr_map_ids, __u32 *map_ids) WARNING: line length of 84 exceeds 80 columns #143: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:99: + BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), WARNING: line length of 96 exceeds 80 columns #177: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:133: +static bool check_expected_map_ids(int prog_fd, int expected, __u32 *map_ids, __u32 *nr_map_ids) CHECK: multiple assignments should be avoided #255: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:211: + extra_fds[0] = extra_fds[2] = _bpf_map_create(); CHECK: multiple assignments should be avoided #258: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:214: + extra_fds[1] = extra_fds[3] = _bpf_map_create(); WARNING: line length of 86 exceeds 80 columns #328: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:284: + if (!ASSERT_EQ(prog_fd, -EBADF, "prog should have been rejected with -EBADF")) WARNING: line length of 88 exceeds 80 columns #337: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:293: + if (!ASSERT_EQ(prog_fd, -EINVAL, "prog should have been rejected with -EINVAL")) CHECK: Please don't use multiple blank lines #372: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:328: + + WARNING: line length of 81 exceeds 80 columns #389: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:345: + ASSERT_EQ(prog_fd, -E2BIG, "prog should have been rejected with -E2BIG"); total: 2 errors, 8 warnings, 3 checks, 374 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 a2c5ab12ebfe ("selftests/bpf: Add tests for fd_array_cnt") 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.