WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #25: new file mode 100644 WARNING: line length of 83 exceeds 80 columns #45: FILE: tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c:16: +static void subtest_kmem_cache_iter_check_task_struct(struct kmem_cache_iter *skel) CHECK: Alignment should match open parenthesis #48: FILE: tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c:19: + LIBBPF_OPTS(bpf_test_run_opts, opts, + .flags = 0, /* Run it with the current task */ CHECK: Comparison to NULL could be written "!fp" #70: FILE: tools/testing/selftests/bpf/prog_tests/kmem_cache_iter.c:41: + if (fp == NULL) { CHECK: No space is necessary after a cast #210: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:31: +extern void bpf_rcu_read_lock(void) __ksym; CHECK: No space is necessary after a cast #211: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:32: +extern void bpf_rcu_read_unlock(void) __ksym; WARNING: externs should be avoided in .c files #212: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:33: +extern struct kmem_cache *bpf_get_kmem_cache(u64 addr) __ksym; CHECK: Comparison to NULL could be written "!r" #234: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:55: + if (r == NULL) WARNING: line length of 82 exceeds 80 columns #244: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:65: + bpf_map_update_elem(&slab_hash, &s, r->name, BPF_NOEXIST); CHECK: Comparison to NULL could be written "!s" #260: FILE: tools/testing/selftests/bpf/progs/kmem_cache_iter.c:81: + if (s == NULL) { total: 0 errors, 4 warnings, 6 checks, 232 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 f2b00f66d6de ("selftests/bpf: Add a test for kmem_cache_iter") 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, 4 warnings, 6 checks, 232 lines checked