WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #38: new file mode 100644 WARNING: line length of 101 exceeds 80 columns #76: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:34: + .str_off = offsetof(struct btf_blob, str) - offsetof(struct btf_blob, types), WARNING: line length of 81 exceeds 80 columns #81: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:39: + BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 64, 8), /* [1] */ ERROR: space required before the open parenthesis '(' #95: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:53: +} while(0) WARNING: line length of 86 exceeds 80 columns #121: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:79: +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 #148: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:106: + BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), WARNING: line length of 94 exceeds 80 columns #157: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:115: + return bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, ARRAY_SIZE(insns), &opts); WARNING: line length of 96 exceeds 80 columns #174: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:132: +static bool check_expected_map_ids(int prog_fd, int expected, __u32 *map_ids, __u32 *nr_map_ids) CHECK: multiple assignments should be avoided #256: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:214: + extra_fds[0] = extra_fds[2] = new_map(); CHECK: multiple assignments should be avoided #259: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:217: + extra_fds[1] = extra_fds[3] = new_map(); WARNING: Block comments use a trailing */ on a separate line #371: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:329: + * way to sync, so just wait a bit (max ~1 second). */ WARNING: line length of 86 exceeds 80 columns #409: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:367: + if (!ASSERT_EQ(prog_fd, -EBADF, "prog should have been rejected with -EBADF")) WARNING: line length of 88 exceeds 80 columns #418: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:376: + if (!ASSERT_EQ(prog_fd, -EINVAL, "prog should have been rejected with -EINVAL")) WARNING: line length of 81 exceeds 80 columns #454: FILE: tools/testing/selftests/bpf/prog_tests/fd_array.c:412: + ASSERT_EQ(prog_fd, -E2BIG, "prog should have been rejected with -E2BIG"); total: 1 errors, 11 warnings, 2 checks, 441 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 b7d599f161e4 ("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.