CHECK: spinlock_t definition without comment #37: FILE: include/linux/bpf.h:1524: + spinlock_t lock; WARNING: line length of 87 exceeds 80 columns #75: FILE: kernel/bpf/core.c:122: + bpf_memcg_flags(GFP_KERNEL | gfp_extra_flags)); CHECK: Alignment should match open parenthesis #75: FILE: kernel/bpf/core.c:122: + termination_states = kzalloc(sizeof(*termination_states), + bpf_memcg_flags(GFP_KERNEL | gfp_extra_flags)); WARNING: line length of 85 exceeds 80 columns #79: FILE: kernel/bpf/core.c:126: + termination_states->per_cpu_state = kzalloc(sizeof(struct cpu_aux) * NR_CPUS, WARNING: usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_possible_cpu(), etc #79: FILE: kernel/bpf/core.c:126: + termination_states->per_cpu_state = kzalloc(sizeof(struct cpu_aux) * NR_CPUS, WARNING: line length of 87 exceeds 80 columns #80: FILE: kernel/bpf/core.c:127: + bpf_memcg_flags(GFP_KERNEL | gfp_extra_flags)); CHECK: Alignment should match open parenthesis #80: FILE: kernel/bpf/core.c:127: + termination_states->per_cpu_state = kzalloc(sizeof(struct cpu_aux) * NR_CPUS, + bpf_memcg_flags(GFP_KERNEL | gfp_extra_flags)); WARNING: usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_possible_cpu(), etc #84: FILE: kernel/bpf/core.c:131: + for (int i = 0; i < NR_CPUS; i++) { CHECK: Lines should not end with a '(' #89: FILE: kernel/bpf/core.c:136: + termination_states->pre_execution_state = kzalloc( WARNING: usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_possible_cpu(), etc #90: FILE: kernel/bpf/core.c:137: + sizeof(struct pt_regs) * NR_CPUS, WARNING: line length of 85 exceeds 80 columns #91: FILE: kernel/bpf/core.c:138: + bpf_memcg_flags(GFP_KERNEL | gfp_extra_flags) total: 0 errors, 7 warnings, 4 checks, 103 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 1cdbdbac9934 ("bpf: Introduce new structs and struct fields") 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, 7 warnings, 4 checks, 103 lines checked