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 #87: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:59: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 93 exceeds 80 columns #121: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:93: + 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 #126: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:98: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 93 exceeds 80 columns #154: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:126: + 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 #159: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:131: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 96 exceeds 80 columns #211: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:183: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #214: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:186: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 96 exceeds 80 columns #259: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:231: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #262: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:234: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 96 exceeds 80 columns #307: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:279: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 88 exceeds 80 columns #310: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:282: + ASSERT_EQ(val.xlated_off, map_out[i], "val should be equal map_out[i]"); WARNING: line length of 99 exceeds 80 columns #335: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:307: + 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 #344: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:316: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 99 exceeds 80 columns #352: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:324: + if (!ASSERT_EQ(extra_fd, -EBUSY, "program should have been rejected (extra_fd != -EBUSY)")) WARNING: line length of 84 exceeds 80 columns #373: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:345: + BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), WARNING: line length of 99 exceeds 80 columns #386: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:358: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) total: 0 errors, 21 warnings, 0 checks, 405 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 ebcf68ced6e9 ("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, 21 warnings, 0 checks, 405 lines checked