CHECK: Comparison to NULL could be written "fp" #124: FILE: tools/testing/selftests/bpf/trace_helpers.c:73: + if (fp != NULL) { CHECK: Comparison to NULL could be written "fgets" #127: FILE: tools/testing/selftests/bpf/trace_helpers.c:76: + if (fgets(line, sizeof(line), fp) != NULL) WARNING: line length of 90 exceeds 80 columns #146: FILE: tools/testing/selftests/bpf/trace_helpers.c:129: + printf("ksyms restricted, please check /proc/sys/kernel/kptr_restrict\n"); WARNING: line length of 90 exceeds 80 columns #158: FILE: tools/testing/selftests/bpf/trace_helpers.c:280: + printf("ksyms restricted, please check /proc/sys/kernel/kptr_restrict\n"); total: 0 errors, 2 warnings, 2 checks, 106 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 764b43499238 ("selftests/bpf:Enhance bpf ability to detect ksym read error by libcap") 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, 2 warnings, 2 checks, 106 lines checked