WARNING: line length of 92 exceeds 80 columns #45: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:48: +static void test_refcnt_leak(void *values, size_t values_sz, u64 flags, struct bpf_map *map, WARNING: line length of 91 exceeds 80 columns #46: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:49: + struct bpf_program *prog_leak, struct bpf_program *prog_check) WARNING: Missing a blank line after declarations #49: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:52: + int ret, fd, key = 0; + 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:58: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: line length of 85 exceeds 80 columns #66: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:69: + ret = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, flags); WARNING: line length of 81 exceeds 80 columns #123: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:126: + test_refcnt_leak(&value, sizeof(value), BPF_F_LOCK, skel->maps.lock_hash, WARNING: line length of 92 exceeds 80 columns #147: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:150: + link = bpf_program__attach_cgroup(skel->progs.cgroup_storage_refcount_leak, cgroup); WARNING: line length of 95 exceeds 80 columns #161: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:164: + err = bpf_map__lookup_elem(map, &cgroup, sizeof(cgroup), &value, sizeof(value), flags); WARNING: line length of 95 exceeds 80 columns #167: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:170: + err = bpf_map__update_elem(map, &cgroup, sizeof(cgroup), &value, sizeof(value), flags); WARNING: line length of 95 exceeds 80 columns #185: FILE: tools/testing/selftests/bpf/prog_tests/refcounted_kptr.c:188: + err = bpf_map__lookup_elem(map, &cgroup, sizeof(cgroup), &value, sizeof(value), flags); CHECK: No space is necessary after a cast #242: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:578: + bpf_probe_read_kernel(&refcnt, sizeof(refcnt), (void *) ref); WARNING: line length of 83 exceeds 80 columns #246: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:582: +static int __insert_in_list(struct bpf_list_head *head, struct bpf_spin_lock *lock, CHECK: spaces preferred around that '*' (ctx:WxO) #247: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:583: + struct node_data __kptr **node) ^ CHECK: No space is necessary after a cast #265: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:601: + ref = (u64)(void *) &m->ref; CHECK: spaces preferred around that '*' (ctx:WxV) #303: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:639: + struct node_data __kptr *node; ^ WARNING: line length of 96 exceeds 80 columns #362: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:698: + v = bpf_cgrp_storage_get(&cgrp_strg, tsk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, WARNING: line length of 102 exceeds 80 columns #375: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:711: +int BPF_PROG(check_cgroup_storage_refcount, struct socket *sock, struct sockaddr *uaddr, int addr_len, WARNING: line length of 82 exceeds 80 columns #384: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:720: + v = bpf_cgrp_storage_get(&cgrp_strg, sock->sk->sk_cgrp_data.cgroup, 0, 0); total: 0 errors, 14 warnings, 4 checks, 357 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 c348f8cf7393 ("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, 14 warnings, 4 checks, 357 lines checked