WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #24: new file mode 100644 WARNING: line length of 91 exceeds 80 columns #40: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:12: + return bpf_map_create(map_type, map_name, key_size, value_size, max_entries, NULL); WARNING: line length of 95 exceeds 80 columns #43: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:15: +static int prog_load(struct bpf_insn *insns, __u32 insn_cnt, int *fd_array, __u32 fd_array_cnt) WARNING: line length of 85 exceeds 80 columns #50: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:22: + return bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, insn_cnt, &opts); WARNING: line length of 99 exceeds 80 columns #78: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:50: + if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem")) WARNING: line length of 96 exceeds 80 columns #90: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:62: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 93 exceeds 80 columns #124: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:96: + if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &key, &val, 0), 0, "bpf_map_update_elem")) WARNING: line length of 101 exceeds 80 columns #132: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:104: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 93 exceeds 80 columns #160: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:132: + if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &key, &val, 0), 0, "bpf_map_update_elem")) WARNING: line length of 101 exceeds 80 columns #168: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:140: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 96 exceeds 80 columns #223: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:195: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #226: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:198: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 96 exceeds 80 columns #274: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:246: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #277: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:249: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 96 exceeds 80 columns #325: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:297: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #328: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:300: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 99 exceeds 80 columns #353: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:325: + if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem")) WARNING: line length of 99 exceeds 80 columns #359: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:331: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) WARNING: line length of 96 exceeds 80 columns #372: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:344: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 99 exceeds 80 columns #400: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:372: + if (!ASSERT_EQ(bpf_map_update_elem(map_fd, &i, &val, 0), 0, "bpf_map_update_elem")) WARNING: line length of 96 exceeds 80 columns #412: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:384: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 99 exceeds 80 columns #420: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:392: + if (!ASSERT_EQ(extra_fd, -EBUSY, "program should have been rejected (extra_fd != -EBUSY)")) WARNING: line length of 84 exceeds 80 columns #441: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:413: + BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), WARNING: line length of 99 exceeds 80 columns #457: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:429: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) total: 0 errors, 24 warnings, 0 checks, 479 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 7012e361f0c8 ("selftests/bpf: add selftests for new insn_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, 24 warnings, 0 checks, 479 lines checked