WARNING: line length of 87 exceeds 80 columns #42: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:119: +static void test_percpu_map_op_cpu_flag(struct bpf_map *map, void *keys, size_t key_sz, WARNING: Missing a blank line after declarations #52: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:129: + u32 count, v; + LIBBPF_OPTS(bpf_map_batch_opts, batch_opts); CHECK: Please don't use multiple blank lines #114: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:191: + + WARNING: line length of 89 exceeds 80 columns #117: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:194: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values_percpu, WARNING: line length of 82 exceeds 80 columns #118: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:195: + roundup(value_sz, 8) * nr_cpus, flags); WARNING: line length of 90 exceeds 80 columns #128: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:205: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #138: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:215: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 82 exceeds 80 columns #140: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:217: + if (!ASSERT_OK(err, "bpf_map__update_elem specified cpu")) WARNING: line length of 98 exceeds 80 columns #146: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:223: + err = bpf_map__lookup_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #148: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:225: + if (!ASSERT_OK(err, "bpf_map__lookup_elem specified cpu")) WARNING: line length of 94 exceeds 80 columns #151: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:228: + "bpf_map__lookup_elem value on specified cpu")) WARNING: line length of 86 exceeds 80 columns #172: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:249: + err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); WARNING: line length of 86 exceeds 80 columns #182: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:259: + err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); WARNING: line length of 100 exceeds 80 columns #190: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:267: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values, &count, &batch_opts); WARNING: line length of 95 exceeds 80 columns #191: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:268: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch specified cpu")) WARNING: line length of 86 exceeds 80 columns #196: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:273: + "bpf_map_lookup_batch value on specified cpu")) WARNING: line length of 87 exceeds 80 columns #203: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:280: + memset(values_percpu, 0, roundup(value_sz, 8) * nr_cpus * max_entries); WARNING: line length of 93 exceeds 80 columns #204: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:281: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values_percpu, &count, WARNING: line length of 90 exceeds 80 columns #206: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:283: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch all_cpus")) CHECK: No space is necessary after a cast #210: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:287: + values_row = (void *) values_percpu + WARNING: line length of 85 exceeds 80 columns #213: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:290: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); CHECK: No space is necessary after a cast #213: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:290: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); WARNING: line length of 86 exceeds 80 columns #215: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:292: + "bpf_map_lookup_batch value all_cpus")) WARNING: line length of 81 exceeds 80 columns #226: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:303: +static void test_percpu_map_cpu_flag(enum bpf_map_type map_type, u32 max_entries) WARNING: Missing a blank line after declarations #328: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:405: + int err, map_fd, key = 0; + LIBBPF_OPTS(bpf_map_batch_opts, batch_opts); WARNING: line length of 97 exceeds 80 columns #330: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:407: + map_fd = bpf_map_create(map_type, "test_cpu_flag", sizeof(int), sizeof(u64), max_entries, WARNING: line length of 90 exceeds 80 columns #348: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:425: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, &key, &val, &count, &batch_opts); total: 0 errors, 24 warnings, 3 checks, 386 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 58ff706888c9 ("selftests/bpf: Add cases to test BPF_F_CPU and BPF_F_ALL_CPUS flags") 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, 24 warnings, 3 checks, 386 lines checked