WARNING: line length of 91 exceeds 80 columns #41: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:13: + return bpf_map_create(map_type, map_name, key_size, value_size, max_entries, NULL); WARNING: line length of 95 exceeds 80 columns #44: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:16: +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 #51: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:23: + return bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, insn_cnt, &opts); WARNING: line length of 98 exceeds 80 columns #54: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:26: +static void __check_success(struct bpf_insn *insns, __u32 insn_cnt, __u32 *map_in, __u32 *map_out) WARNING: line length of 99 exceeds 80 columns #65: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:37: + 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 #79: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:51: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 92 exceeds 80 columns #82: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:54: + snprintf(buf, sizeof(buf), "val.xlated_off should be equal map_out[%d]", i); WARNING: line length of 93 exceeds 80 columns #201: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:173: + 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 #208: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:180: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 93 exceeds 80 columns #236: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:208: + 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 #243: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:215: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) { WARNING: line length of 99 exceeds 80 columns #275: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:247: + 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 #280: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:252: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) WARNING: line length of 96 exceeds 80 columns #293: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:265: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 99 exceeds 80 columns #321: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:293: + 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 #333: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:305: + if (!ASSERT_EQ(bpf_map_lookup_elem(map_fd, &i, &val), 0, "bpf_map_lookup_elem")) WARNING: line length of 99 exceeds 80 columns #340: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:312: + if (!ASSERT_EQ(extra_fd, -EBUSY, "program should have been rejected (extra_fd != -EBUSY)")) WARNING: line length of 84 exceeds 80 columns #361: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:333: + BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), WARNING: line length of 99 exceeds 80 columns #376: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:348: + if (!ASSERT_EQ(prog_fd, -EINVAL, "program should have been rejected (prog_fd != -EINVAL)")) CHECK: Blank lines aren't necessary after an open brace '{' #430: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:402: +{ + CHECK: Blank lines aren't necessary before a close brace '}' #431: FILE: tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c:403: + +} total: 0 errors, 19 warnings, 2 checks, 404 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 7ee2dd7073d4 ("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 FILE_PATH_CHANGES 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, 19 warnings, 2 checks, 404 lines checked