WARNING: line length of 87 exceeds 80 columns #54: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:31: + ASSERT_EQ(hdr->str_off, hdr->layout_off + hdr->layout_len, "str_after_layout"); WARNING: line length of 83 exceeds 80 columns #70: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:47: + ASSERT_EQ(hdr->str_off, hdr->type_off + hdr->type_len, "strs_after_types"); WARNING: Missing a blank line after declarations #90: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:67: + __s32 int_id, unrec_id, id, id2; + LIBBPF_OPTS(btf_new_opts, opts); WARNING: line length of 82 exceeds 80 columns #152: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:129: + t = (void *)hdr + hdr->hdr_len + hdr->type_off + sizeof(struct btf_type) + WARNING: line length of 85 exceeds 80 columns #189: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:166: + /* id of "test_lookup2" will be id2 -1 as we have removed one type */ CHECK: Blank lines aren't necessary before a close brace '}' #194: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:171: + + } CHECK: spaces preferred around that '/' (ctx:VxV) #202: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:179: + l[NR_BTF_KINDS].elem_sz = sizeof(struct btf_type)/2; ^ WARNING: line length of 85 exceeds 80 columns #211: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:188: + /* id of "test_lookup2" will be id2 -1 as we have removed one type */ CHECK: Blank lines aren't necessary before a close brace '}' #216: FILE: tools/testing/selftests/bpf/prog_tests/btf_kind.c:193: + + } total: 0 errors, 6 warnings, 3 checks, 206 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 52d13a9407c3 ("selftests/bpf: test kind encoding/decoding") 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, 6 warnings, 3 checks, 206 lines checked