WARNING: line length of 87 exceeds 80 columns #39: 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 #49: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:129: + void *values_row; + LIBBPF_OPTS(bpf_map_batch_opts, batch_opts); WARNING: line length of 90 exceeds 80 columns #101: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:181: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #111: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:191: + err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 82 exceeds 80 columns #113: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:193: + if (!ASSERT_OK(err, "bpf_map__update_elem specified cpu")) WARNING: line length of 98 exceeds 80 columns #119: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:199: + err = bpf_map__lookup_elem(map, keys + i * key_sz, key_sz, values, WARNING: line length of 90 exceeds 80 columns #121: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:201: + if (!ASSERT_OK(err, "bpf_map__lookup_elem specified cpu")) WARNING: line length of 94 exceeds 80 columns #124: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:204: + "bpf_map__lookup_elem value on specified cpu")) WARNING: line length of 84 exceeds 80 columns #134: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:214: + err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &batch_opts); WARNING: line length of 92 exceeds 80 columns #143: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:223: + err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &batch_opts); WARNING: line length of 92 exceeds 80 columns #152: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:232: + err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &batch_opts); WARNING: line length of 100 exceeds 80 columns #158: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:238: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values, &count, &batch_opts); WARNING: line length of 95 exceeds 80 columns #159: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:239: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch specified cpu")) WARNING: line length of 86 exceeds 80 columns #164: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:244: + "bpf_map_lookup_batch value on specified cpu")) WARNING: line length of 87 exceeds 80 columns #169: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:249: + memset(values_percpu, 0, roundup(value_sz, 8) * nr_cpus * max_entries); WARNING: line length of 93 exceeds 80 columns #170: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:250: + err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values_percpu, &count, WARNING: line length of 90 exceeds 80 columns #172: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:252: + if (!ASSERT_TRUE(!err || err == -ENOENT, "bpf_map_lookup_batch all_cpus")) CHECK: No space is necessary after a cast #176: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:256: + values_row = (void *) values_percpu + WARNING: line length of 85 exceeds 80 columns #179: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:259: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); CHECK: No space is necessary after a cast #179: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:259: + v = *(u32 *) (values_row + roundup(value_sz, 8) * j); WARNING: line length of 86 exceeds 80 columns #181: FILE: tools/testing/selftests/bpf/prog_tests/percpu_alloc.c:261: + "bpf_map_lookup_batch value all_cpus")) total: 0 errors, 19 warnings, 2 checks, 299 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 e83e6186d2cb ("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 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, 299 lines checked