CHECK: Comparison to NULL could be written "!percpu_data" #76: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:89: + if (!ASSERT_FALSE(percpu_data == NULL, "calloc percpu_data")) WARNING: line length of 82 exceeds 80 columns #101: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:114: + if (!ASSERT_EQ((void *) init_data, (void *) skel->percpu, "skel->percpu")) CHECK: No space is necessary after a cast #101: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:114: + if (!ASSERT_EQ((void *) init_data, (void *) skel->percpu, "skel->percpu")) WARNING: line length of 86 exceeds 80 columns #103: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:116: + ASSERT_EQ(skel->percpu->percpu_data, init_value, "skel->percpu->percpu_data"); CHECK: No space is necessary after a cast #127: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:140: + ASSERT_EQ((int) percpu_data[skel->bss->curr_cpu], 1, "percpu_data"); CHECK: No space is necessary after a cast #129: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:142: + ASSERT_EQ((int) percpu_data[(skel->bss->curr_cpu+1)%num_cpus], CHECK: spaces preferred around that '+' (ctx:VxV) #129: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:142: + ASSERT_EQ((int) percpu_data[(skel->bss->curr_cpu+1)%num_cpus], ^ CHECK: spaces preferred around that '%' (ctx:VxV) #129: FILE: tools/testing/selftests/bpf/prog_tests/global_data_init.c:142: + ASSERT_EQ((int) percpu_data[(skel->bss->curr_cpu+1)%num_cpus], ^ WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #138: new file mode 100644 total: 0 errors, 3 warnings, 6 checks, 124 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 b50e37ee0169 ("selftests/bpf: Add a case to test global percpu data") 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, 3 warnings, 6 checks, 124 lines checked