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: min() should probably be min_t(size_t, hdr_len, sizeof(struct btf_header)) #193: FILE: tools/lib/bpf/btf.c:290: + memcpy(&btf->hdr, hdr, min((size_t)hdr_len, sizeof(struct btf_header))); WARNING: line length of 82 exceeds 80 columns #219: FILE: tools/lib/bpf/btf.c:315: + if ((long long)btf->hdr.type_off + btf->hdr.type_len > btf->hdr.str_off) { WARNING: line length of 85 exceeds 80 columns #241: FILE: tools/lib/bpf/btf.c:335: + if (btf->hdr.layout_off < (long long)btf->hdr.type_off + btf->hdr.type_len) { WARNING: line length of 86 exceeds 80 columns #247: FILE: tools/lib/bpf/btf.c:341: + if ((long long)btf->hdr.layout_off + btf->hdr.layout_len > btf->hdr.str_off || WARNING: line length of 85 exceeds 80 columns #250: FILE: tools/lib/bpf/btf.c:344: + btf->hdr.layout_off, btf->hdr.layout_len, btf->hdr.str_off); WARNING: line length of 88 exceeds 80 columns #267: FILE: tools/lib/bpf/btf.c:357: + if (!btf->hdr.str_len || btf->hdr.str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { WARNING: line length of 85 exceeds 80 columns #343: FILE: tools/lib/bpf/btf.c:1161: + btf->start_str_off = base_btf->hdr.str_len + base_btf->start_str_off; WARNING: line length of 85 exceeds 80 columns #375: FILE: tools/lib/bpf/btf.c:1214: + 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) #420: FILE: tools/lib/bpf/btf.c:1712: + memcpy(p, hdr, min((__u32)sizeof(struct btf_header), hdr->hdr_len)); WARNING: line length of 86 exceeds 80 columns #490: FILE: tools/lib/bpf/btf.c:1910: + memcpy(layout, btf->raw_data + btf->hdr.hdr_len + btf->hdr.layout_off, WARNING: line length of 82 exceeds 80 columns #677: FILE: tools/lib/bpf/btf.c:2246: + memset(btf->strs_data + old_strs_len, 0, btf->hdr.str_len - old_strs_len); WARNING: line length of 85 exceeds 80 columns #1056: FILE: tools/lib/bpf/btf.c:5570: + d->btf->hdr.layout_off = d->btf->hdr.type_off + d->btf->hdr.type_len; WARNING: line length of 99 exceeds 80 columns #1057: FILE: tools/lib/bpf/btf.c:5571: + 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 #1058: FILE: tools/lib/bpf/btf.c:5572: + d->btf->raw_size = d->btf->hdr.hdr_len + d->btf->hdr.type_off + d->btf->hdr.type_len + total: 0 errors, 16 warnings, 0 checks, 1013 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 e3713df42c51 ("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, 16 warnings, 0 checks, 1013 lines checked