WARNING: line length of 92 exceeds 80 columns #115: FILE: tools/lib/bpf/btf.c:139: + /* is BTF modifiable? i.e. is it split into separate sections as described above? */ WARNING: line length of 90 exceeds 80 columns #142: FILE: tools/lib/bpf/btf.c:249: + /* May be operating on raw data with hdr_len that does not include below fields */ WARNING: line length of 82 exceeds 80 columns #217: FILE: tools/lib/bpf/btf.c:313: + if ((long long)btf->hdr.type_off + btf->hdr.type_len > btf->hdr.str_off) { WARNING: line length of 85 exceeds 80 columns #239: FILE: tools/lib/bpf/btf.c:333: + if (btf->hdr.layout_off < (long long)btf->hdr.type_off + btf->hdr.type_len) { WARNING: line length of 86 exceeds 80 columns #245: FILE: tools/lib/bpf/btf.c:339: + if ((long long)btf->hdr.layout_off + btf->hdr.layout_len > btf->hdr.str_off || WARNING: line length of 85 exceeds 80 columns #248: FILE: tools/lib/bpf/btf.c:342: + btf->hdr.layout_off, btf->hdr.layout_len, btf->hdr.str_off); WARNING: line length of 88 exceeds 80 columns #265: FILE: tools/lib/bpf/btf.c:355: + if (!btf->hdr.str_len || btf->hdr.str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { WARNING: line length of 85 exceeds 80 columns #341: FILE: tools/lib/bpf/btf.c:1159: + btf->start_str_off = base_btf->hdr.str_len + base_btf->start_str_off; WARNING: line length of 85 exceeds 80 columns #373: FILE: tools/lib/bpf/btf.c:1212: + btf->start_str_off = base_btf->hdr.str_len + base_btf->start_str_off; WARNING: min() should probably be min_t(__u32, sizeof(struct btf_header), hdr->hdr_len) #418: FILE: tools/lib/bpf/btf.c:1710: + memcpy(p, hdr, min((__u32)sizeof(struct btf_header), hdr->hdr_len)); WARNING: line length of 86 exceeds 80 columns #488: FILE: tools/lib/bpf/btf.c:1908: + memcpy(layout, btf->raw_data + btf->hdr.hdr_len + btf->hdr.layout_off, WARNING: line length of 82 exceeds 80 columns #675: FILE: tools/lib/bpf/btf.c:2244: + memset(btf->strs_data + old_strs_len, 0, btf->hdr.str_len - old_strs_len); WARNING: line length of 85 exceeds 80 columns #1054: FILE: tools/lib/bpf/btf.c:5568: + d->btf->hdr.layout_off = d->btf->hdr.type_off + d->btf->hdr.type_len; WARNING: line length of 99 exceeds 80 columns #1055: FILE: tools/lib/bpf/btf.c:5569: + d->btf->hdr.str_off = d->btf->hdr.type_off + d->btf->hdr.type_len + d->btf->hdr.layout_len; WARNING: line length of 94 exceeds 80 columns #1056: FILE: tools/lib/bpf/btf.c:5570: + d->btf->raw_size = d->btf->hdr.hdr_len + d->btf->hdr.type_off + d->btf->hdr.type_len + total: 0 errors, 15 warnings, 0 checks, 1011 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 090f3e9ede2a ("libbpf: Support layout section handling in BTF") 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, 15 warnings, 0 checks, 1011 lines checked