CHECK: Unnecessary parentheses around 'ctx->item != PGFAULT' #159: FILE: samples/bpf/memcg.bpf.c:44: + if (ctx->id != local_config.high_cgroup_id || + (ctx->item != PGFAULT)) CHECK: Comparison to NULL could be written "!cgroup_path" #339: FILE: samples/bpf/memcg.c:89: + if (cgroup_path == NULL) { CHECK: Prefer kernel type 'u64' over 'uint64_t' #356: FILE: samples/bpf/memcg.c:106: + uint64_t threshold = 0, high_cgroup_id; CHECK: Alignment should match open parenthesis #524: FILE: samples/bpf/memcg.c:274: + LIBBPF_OPTS_RESET(opts, + .flags = opts_flags, CHECK: Alignment should match open parenthesis #546: FILE: samples/bpf/memcg.c:296: + LIBBPF_OPTS_RESET(opts, + .flags = opts_flags, total: 0 errors, 0 warnings, 5 checks, 504 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 f517b7048057 ("samples/bpf: Add memcg priority control example") 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, 0 warnings, 5 checks, 504 lines checked