CHECK: multiple assignments should be avoided #82: FILE: kernel/bpf/btf.c:560: + low_start = low = start_id; CHECK: multiple assignments should be avoided #83: FILE: kernel/bpf/btf.c:561: + high_end = high = start_id + btf->nr_types_sorted - 1; CHECK: spaces preferred around that '-' (ctx:VxV) #112: FILE: kernel/bpf/btf.c:582: + t = btf_type_by_id(btf, low-1); ^ CHECK: spaces preferred around that '+' (ctx:VxV) #124: FILE: kernel/bpf/btf.c:594: + t = btf_type_by_id(btf, high+1); ^ WARNING: line length of 81 exceeds 80 columns #317: FILE: tools/lib/bpf/btf.c:5249: +static inline __u32 btf_get_mapped_type(struct btf *btf, __u32 *maps, __u32 type) WARNING: line length of 81 exceeds 80 columns #387: FILE: tools/lib/bpf/btf.c:5319: + found_offs = bsearch(&new_type_offs[i], btf->type_offs, type_cnt, CHECK: Alignment should match open parenthesis #388: FILE: tools/lib/bpf/btf.c:5320: + found_offs = bsearch(&new_type_offs[i], btf->type_offs, type_cnt, + sizeof(__u32), btf_compare_offs); WARNING: line length of 90 exceeds 80 columns #424: FILE: tools/lib/bpf/btf.c:5356: + arr->index_type = btf_get_mapped_type(btf, maps, arr->index_type); WARNING: line length of 82 exceeds 80 columns #433: FILE: tools/lib/bpf/btf.c:5365: + m->type = btf_get_mapped_type(btf, maps, m->type); WARNING: line length of 82 exceeds 80 columns #442: FILE: tools/lib/bpf/btf.c:5374: + p->type = btf_get_mapped_type(btf, maps, p->type); WARNING: line length of 82 exceeds 80 columns #451: FILE: tools/lib/bpf/btf.c:5383: + v->type = btf_get_mapped_type(btf, maps, v->type); total: 0 errors, 6 warnings, 5 checks, 419 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 5b8e2b4b5ce6 ("bpf: Using binary search to improve the performance of btf_find_by_name_kind") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE 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, 5 checks, 419 lines checked