WARNING: Missing a blank line after declarations #71: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:78: + bool *online; + LIBBPF_OPTS(bpf_test_run_opts, topts, WARNING: line length of 87 exceeds 80 columns #105: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:112: + if (!ASSERT_EQ(bpf_map__type(map), BPF_MAP_TYPE_PERCPU_ARRAY, "bpf_map__type")) CHECK: No space is necessary after a cast #128: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:135: + ASSERT_EQ((void *) init_data, (void *) skel->percpu, WARNING: line length of 84 exceeds 80 columns #176: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:183: + ASSERT_EQ(data->struct_data.nums[6], 0xc0de, "struct_data.nums[6]"); WARNING: Missing a blank line after declarations #193: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:200: + bool *online; + LIBBPF_OPTS(bpf_test_run_opts, topts, WARNING: line length of 84 exceeds 80 columns #251: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:258: + ASSERT_EQ(data->struct_data.nums[6], 0xc0de, "struct_data.nums[6]"); WARNING: line length of 94 exceeds 80 columns #318: FILE: tools/testing/selftests/bpf/progs/test_global_percpu_data.c:34: +__failure __msg("R{{[0-9]+}} points to percpu_array map which cannot be used as const string") WARNING: line length of 94 exceeds 80 columns #325: FILE: tools/testing/selftests/bpf/progs/test_global_percpu_data.c:41: +__failure __msg("R{{[0-9]+}} points to percpu_array map which cannot be used as const string") WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #338: FILE: tools/testing/selftests/bpf/progs/test_global_percpu_data.c:54: +static volatile const char fmt2[] SEC(".percpu.fmt") = "data %d\n"; total: 0 errors, 8 warnings, 1 checks, 305 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 28605f6c2d23 ("selftests/bpf: Add tests to verify global percpu data") 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, 8 warnings, 1 checks, 305 lines checked