WARNING: line length of 92 exceeds 80 columns #118: 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 #145: 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)) #196: 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 #222: 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 #244: 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 #250: 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 #253: 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 #270: 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 #353: FILE: tools/lib/bpf/btf.c:1168: + btf->start_str_off = base_btf->hdr.str_len + base_btf->start_str_off; WARNING: line length of 85 exceeds 80 columns #385: FILE: tools/lib/bpf/btf.c:1221: + 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) #430: FILE: tools/lib/bpf/btf.c:1719: + memcpy(p, hdr, min((__u32)sizeof(struct btf_header), hdr->hdr_len)); WARNING: line length of 86 exceeds 80 columns #506: FILE: tools/lib/bpf/btf.c:1923: + memcpy(layout, btf->raw_data + btf->hdr.hdr_len + btf->hdr.layout_off, WARNING: line length of 90 exceeds 80 columns #694: FILE: tools/lib/bpf/btf.c:2260: + memset(btf->strs_data + old_strs_len, 0, btf->hdr.str_len - old_strs_len); WARNING: line length of 85 exceeds 80 columns #1073: FILE: tools/lib/bpf/btf.c:5584: + d->btf->hdr.layout_off = d->btf->hdr.type_off + d->btf->hdr.type_len; WARNING: line length of 99 exceeds 80 columns #1074: FILE: tools/lib/bpf/btf.c:5585: + 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 #1075: FILE: tools/lib/bpf/btf.c:5586: + 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, 1027 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 bfa18fda714f ("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, 1027 lines checked