WARNING: line length of 87 exceeds 80 columns #36: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:48: +static void test_refcnt_leak(void *values, size_t values_sz, u64 flags, bool lock_hash) WARNING: Missing a blank line after declarations #41: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:53: + struct bpf_map *map; + LIBBPF_OPTS(bpf_test_run_opts, opts, WARNING: line length of 85 exceeds 80 columns #55: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:67: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: line length of 85 exceeds 80 columns #69: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:81: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: line length of 83 exceeds 80 columns #136: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:571: +static int __insert_in_list(struct bpf_list_head *head, struct bpf_spin_lock *lock, CHECK: spaces preferred around that '*' (ctx:WxO) #137: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:572: + struct node_data __kptr **node) ^ CHECK: No space is necessary after a cast #157: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:592: + ref = (void *) &m->ref; CHECK: Comparison to NULL could be written "!v->node" #196: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:631: + return v && v->node == NULL; CHECK: spaces preferred around that '*' (ctx:WxV) #200: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:635: + struct node_data __kptr *node; ^ CHECK: Comparison to NULL could be written "!v->node" #234: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:669: + return v && v->node == NULL; total: 0 errors, 5 warnings, 5 checks, 201 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 736e05e64711 ("selftests/bpf: Add test to verify no memleak when updating hash maps") 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, 5 warnings, 5 checks, 201 lines checked