CHECK: extern prototypes should be avoided in .h files #43: FILE: tools/testing/selftests/bpf/bpf_experimental.h:110: +extern struct bpf_list_node *bpf_list_del(struct bpf_list_head *head, WARNING: line length of 81 exceeds 80 columns #53: FILE: tools/testing/selftests/bpf/bpf_experimental.h:120: + * 0 on success, -EINVAL if head is NULL, prev is not in the list with head, WARNING: line length of 83 exceeds 80 columns #56: FILE: tools/testing/selftests/bpf/bpf_experimental.h:123: +extern int bpf_list_add_impl(struct bpf_list_head *head, struct bpf_list_node *new, CHECK: extern prototypes should be avoided in .h files #56: FILE: tools/testing/selftests/bpf/bpf_experimental.h:123: +extern int bpf_list_add_impl(struct bpf_list_head *head, struct bpf_list_node *new, WARNING: line length of 87 exceeds 80 columns #57: FILE: tools/testing/selftests/bpf/bpf_experimental.h:124: + struct bpf_list_node *prev, void *meta, __u64 off) __ksym; WARNING: line length of 81 exceeds 80 columns #60: FILE: tools/testing/selftests/bpf/bpf_experimental.h:127: +#define bpf_list_add(head, new, prev) bpf_list_add_impl(head, new, prev, NULL, 0) CHECK: extern prototypes should be avoided in .h files #66: FILE: tools/testing/selftests/bpf/bpf_experimental.h:133: +extern bool bpf_list_node_is_edge(struct bpf_list_head *head, WARNING: line length of 84 exceeds 80 columns #67: FILE: tools/testing/selftests/bpf/bpf_experimental.h:134: + struct bpf_list_node *node, bool is_first) __ksym; CHECK: extern prototypes should be avoided in .h files #72: FILE: tools/testing/selftests/bpf/bpf_experimental.h:139: +extern bool bpf_list_empty(struct bpf_list_head *head) __ksym; WARNING: line length of 85 exceeds 80 columns #90: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:375: +__description("list_add_del_and_check: test bpf_list_add/del/is_first/is_last/empty") WARNING: line length of 85 exceeds 80 columns #240: FILE: tools/testing/selftests/bpf/progs/refcounted_kptr.c:525: + /* Intentionally no lock: verifier should reject bpf_list_add without lock */ total: 0 errors, 7 warnings, 4 checks, 233 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 d95f7acecdae ("selftests/bpf: Add test cases for bpf_list_del/add/is_edge/empty") 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, 7 warnings, 4 checks, 233 lines checked