WARNING: line length of 99 exceeds 80 columns #45: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:48: +static void test_refcnt_leak(struct refcounted_kptr *skel, int key, void *values, size_t values_sz, WARNING: line length of 91 exceeds 80 columns #46: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:49: + u64 flags, struct bpf_map *map, struct bpf_program *prog_leak, WARNING: line length of 92 exceeds 80 columns #47: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:50: + struct bpf_program *prog_check, struct bpf_test_run_opts *opts) WARNING: line length of 85 exceeds 80 columns #51: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:54: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: line length of 85 exceeds 80 columns #62: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:65: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: Missing a blank line after declarations #78: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:81: + int cpu_nr; + LIBBPF_OPTS(bpf_test_run_opts, opts, WARNING: Missing a blank line after declarations #119: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:122: + struct refcounted_kptr *skel; + LIBBPF_OPTS(bpf_test_run_opts, opts, WARNING: line length of 90 exceeds 80 columns #129: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:132: + test_refcnt_leak(skel, 0, &value, sizeof(value), BPF_F_LOCK, skel->maps.lock_hash, WARNING: Missing a blank line after declarations #141: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:144: + int cgroup, err; + LIBBPF_OPTS(bpf_test_run_opts, opts); WARNING: line length of 95 exceeds 80 columns #157: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:160: + test_refcnt_leak(skel, cgroup, &value, sizeof(value), BPF_F_LOCK, skel->maps.cgrp_strg, WARNING: line length of 83 exceeds 80 columns #189: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:576: + bpf_probe_read_kernel(&kptr_refcount, sizeof(kptr_refcount), (void *) ref); CHECK: No space is necessary after a cast #189: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:576: + bpf_probe_read_kernel(&kptr_refcount, sizeof(kptr_refcount), (void *) ref); WARNING: line length of 83 exceeds 80 columns #193: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:580: +static int __insert_in_list(struct bpf_list_head *head, struct bpf_spin_lock *lock, CHECK: spaces preferred around that '*' (ctx:WxO) #194: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:581: + struct node_data __kptr **node) ^ CHECK: No space is necessary after a cast #212: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:599: + ref = (u64)(void *) &m->ref; CHECK: spaces preferred around that '*' (ctx:WxV) #250: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:637: + struct node_data __kptr *node; ^ total: 0 errors, 12 warnings, 4 checks, 276 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 093b46f1bbbf ("selftests/bpf: Add tests to verify freeing the special fields when update hash and local storage 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, 12 warnings, 4 checks, 276 lines checked