WARNING: line length of 100 exceeds 80 columns #54: 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, u32 entries, WARNING: Missing a blank line after declarations #64: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:129: + u32 count, v; + LIBBPF_OPTS(bpf_map_batch_opts, batch_opts); WARNING: line length of 90 exceeds 80 columns #127: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:192: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #137: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:202: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 82 exceeds 80 columns #139: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:204: + if (!ASSERT_OK(err, "bpf_map__update_elem specified cpu")) WARNING: line length of 98 exceeds 80 columns #145: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:210: + err = bpf_map__lookup_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #147: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:212: + if (!ASSERT_OK(err, "bpf_map__lookup_elem specified cpu")) WARNING: line length of 94 exceeds 80 columns #150: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:215: + "bpf_map__lookup_elem value on specified cpu")) WARNING: line length of 86 exceeds 80 columns #171: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:236: + err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); WARNING: line length of 86 exceeds 80 columns #181: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:246: + err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); WARNING: line length of 100 exceeds 80 columns #189: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:254: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values, &count, &batch_opts); WARNING: line length of 95 exceeds 80 columns #190: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:255: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch specified cpu")) WARNING: line length of 86 exceeds 80 columns #195: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:260: + "bpf_map_lookup_batch value on specified cpu")) WARNING: line length of 83 exceeds 80 columns #202: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:267: + memset(values_percpu, 0, roundup(value_sz, 8) * nr_cpus * entries); WARNING: line length of 93 exceeds 80 columns #203: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:268: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values_percpu, &count, WARNING: line length of 90 exceeds 80 columns #205: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:270: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch all_cpus")) CHECK: No space is necessary after a cast #209: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:274: + values_row = (void *) values_percpu + WARNING: line length of 85 exceeds 80 columns #212: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:277: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); CHECK: No space is necessary after a cast #212: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:277: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); WARNING: line length of 86 exceeds 80 columns #214: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:279: + "bpf_map_lookup_batch value all_cpus")) CHECK: Please don't use multiple blank lines #225: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:290: + + WARNING: line length of 87 exceeds 80 columns #260: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:325: + test_percpu_map_op_cpu_flag(map, keys, key_sz, max_entries - 1, nr_cpus, true); WARNING: Missing a blank line after declarations #333: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:398: + int err, map_fd, key = 0; + LIBBPF_OPTS(bpf_map_batch_opts, batch_opts); WARNING: line length of 97 exceeds 80 columns #335: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:400: + map_fd = bpf_map_create(map_type, "test_cpu_flag", sizeof(int), sizeof(u64), max_entries, WARNING: line length of 90 exceeds 80 columns #353: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:418: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, &key, &val, &count, &batch_opts); total: 0 errors, 22 warnings, 3 checks, 379 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 3811b02c9001 ("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, 22 warnings, 3 checks, 379 lines checked