WARNING: line length of 86 exceeds 80 columns #91: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1060: + if (sscanf(ksyms->syms[i].name, "bpf_prog_%*[^_]_%255s", name) == 1 && WARNING: char * array declaration might be better as static const #100: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1069: + const char *func_names[] = { "xdp_main", "token_ksym_subprog" }; WARNING: Missing a blank line after declarations #101: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1070: + const char *func_names[] = { "xdp_main", "token_ksym_subprog" }; + LIBBPF_OPTS(bpf_object_open_opts, opts); WARNING: line length of 104 exceeds 80 columns #162: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1264: + if (sysctl_set_or_fail("/proc/sys/kernel/perf_event_paranoid", perf_paranoid_orig, "0")) WARNING: line length of 98 exceeds 80 columns #164: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1266: + if (sysctl_set_or_fail("/proc/sys/kernel/kptr_restrict", kptr_restrict_orig, "0")) WARNING: line length of 109 exceeds 80 columns #171: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1273: + sysctl_set_or_fail("/proc/sys/kernel/perf_event_paranoid", NULL, perf_paranoid_orig); WARNING: line length of 103 exceeds 80 columns #173: FILE: tools/testing/selftests/bpf/prog_tests/token.c:1275: + sysctl_set_or_fail("/proc/sys/kernel/kptr_restrict", NULL, kptr_restrict_orig); WARNING: line length of 83 exceeds 80 columns #274: FILE: tools/testing/selftests/bpf/sysctl_helpers.c:29: +int sysctl_set_or_fail(const char *sysctl_path, char *old_val, const char *new_val) WARNING: line length of 97 exceeds 80 columns #280: FILE: tools/testing/selftests/bpf/sysctl_helpers.c:35: + PRINT_FAIL("failed to set %s to %s: %s\n", sysctl_path, new_val, strerror(-err)); WARNING: line length of 84 exceeds 80 columns #294: FILE: tools/testing/selftests/bpf/sysctl_helpers.h:6: +int sysctl_set_or_fail(const char *sysctl_path, char *old_val, const char *new_val); total: 0 errors, 10 warnings, 0 checks, 222 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 6da420f94890 ("selftests/bpf: verify kallsyms entries for token-loaded subprograms") 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, 10 warnings, 0 checks, 222 lines checked