CHECK: Alignment should match open parenthesis #42: FILE: tools/lib/bpf/btf.c:904: +static __s32 btf__find_by_name_bsearch(const struct btf *btf, const char *name, + int *start, int *end) CHECK: multiple assignments should be avoided #50: FILE: tools/lib/bpf/btf.c:911: + low_start = low = btf->start_id; CHECK: multiple assignments should be avoided #51: FILE: tools/lib/bpf/btf.c:912: + high_end = high = btf->start_id + btf->nr_types_sorted - 1; CHECK: spaces preferred around that '-' (ctx:VxV) #77: FILE: tools/lib/bpf/btf.c:933: + t = btf__type_by_id(btf, low-1); ^ CHECK: spaces preferred around that '+' (ctx:VxV) #91: FILE: tools/lib/bpf/btf.c:945: + t = btf__type_by_id(btf, high+1); ^ WARNING: line length of 85 exceeds 80 columns #131: FILE: tools/lib/bpf/btf.c:975: + id = btf__find_by_name_bsearch(btf, type_name, &start, &end); CHECK: Alignment should match open parenthesis #136: FILE: tools/lib/bpf/btf.c:980: + if (kind == BTF_KIND_MAX || + btf_kind(t) == kind) total: 0 errors, 1 warnings, 6 checks, 222 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 bf1de1ba8014 ("libbpf: 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, 1 warnings, 6 checks, 222 lines checked