CHECK: No space is necessary after a cast #286: FILE: tools/testing/selftests/bpf/test_progs.c:652: + return str_hash((const char *) key); CHECK: No space is necessary after a cast #291: FILE: tools/testing/selftests/bpf/test_progs.c:657: + return strcmp((const char *) key1, (const char *) key2) == 0; WARNING: line length of 94 exceeds 80 columns #345: FILE: tools/testing/selftests/bpf/test_progs.c:711: + return compare_name(((const struct ksym *)p1)->name, ((const struct ksym *)p2)->name); WARNING: line length of 81 exceeds 80 columns #376: FILE: tools/testing/selftests/bpf/test_progs.c:742: + f = fopen("/sys/kernel/tracing/available_filter_functions", "r"); WARNING: line length of 87 exceeds 80 columns #378: FILE: tools/testing/selftests/bpf/test_progs.c:744: + f = fopen("/sys/kernel/debug/tracing/available_filter_functions", "r"); WARNING: line length of 88 exceeds 80 columns #399: FILE: tools/testing/selftests/bpf/test_progs.c:765: + ks = search_kallsyms_custom_local(ksyms, name, search_kallsyms_compare); CHECK: No space is necessary after a cast #414: FILE: tools/testing/selftests/bpf/test_progs.c:780: + err = libbpf_ensure_mem((void **) &syms, &cap, WARNING: line length of 87 exceeds 80 columns #444: FILE: tools/testing/selftests/bpf/test_progs.c:810: + f = fopen("/sys/kernel/tracing/available_filter_functions_addrs", "r"); WARNING: line length of 93 exceeds 80 columns #446: FILE: tools/testing/selftests/bpf/test_progs.c:812: + f = fopen("/sys/kernel/debug/tracing/available_filter_functions_addrs", "r"); WARNING: line length of 82 exceeds 80 columns #452: FILE: tools/testing/selftests/bpf/test_progs.c:818: + * allocate space to hold 64k entries. If 64k is not enough, incrementally CHECK: Comparison to NULL could be written "!addrs" #458: FILE: tools/testing/selftests/bpf/test_progs.c:824: + if (addrs == NULL) { WARNING: From:/Signed-off-by: email address mismatch: 'From: Menglong Dong ' != 'Signed-off-by: Menglong Dong ' total: 0 errors, 8 warnings, 4 checks, 477 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 1a8bb8638600 ("selftests/bpf: add get_ksyms and get_addrs to test_progs.c") 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, 8 warnings, 4 checks, 477 lines checked