WARNING: line length of 88 exceeds 80 columns #69: FILE: kernel/bpf/check_btf.c:16: + verbose(env, "LD_ABS is not allowed in subprogs without BTF\n"); WARNING: line length of 91 exceeds 80 columns #73: FILE: kernel/bpf/check_btf.c:20: + verbose(env, "tail_call is not allowed in subprogs without BTF\n"); WARNING: line length of 81 exceeds 80 columns #119: FILE: kernel/bpf/check_btf.c:66: + krecord = kvcalloc(nfuncs, krec_size, GFP_KERNEL_ACCOUNT | __GFP_NOWARN); WARNING: line length of 84 exceeds 80 columns #127: FILE: kernel/bpf/check_btf.c:74: + verbose(env, "nonzero tailing record in func info"); WARNING: line length of 81 exceeds 80 columns #128: FILE: kernel/bpf/check_btf.c:75: + /* set the size kernel expects so loader can zero WARNING: line length of 103 exceeds 80 columns #132: FILE: kernel/bpf/check_btf.c:79: + offsetof(union bpf_attr, func_info_rec_size), WARNING: line length of 87 exceeds 80 columns #133: FILE: kernel/bpf/check_btf.c:80: + &min_size, sizeof(min_size))) WARNING: line length of 81 exceeds 80 columns #169: FILE: kernel/bpf/check_btf.c:116: + if (unlikely(!func_proto || !btf_type_is_func_proto(func_proto))) WARNING: line length of 82 exceeds 80 columns #170: FILE: kernel/bpf/check_btf.c:117: + /* btf_func_check() already verified it during BTF load */ WARNING: line length of 96 exceeds 80 columns #207: FILE: kernel/bpf/check_btf.c:154: + verbose(env, "number of funcs in func_info doesn't match number of subprogs\n"); WARNING: line length of 108 exceeds 80 columns #229: FILE: kernel/bpf/check_btf.c:176: + verbose(env, "func_info BTF section doesn't match subprog layout in BPF program\n"); WARNING: line length of 85 exceeds 80 columns #241: FILE: kernel/bpf/check_btf.c:188: + btf_type_is_small_int(ret_type) || btf_is_any_enum(ret_type); WARNING: line length of 97 exceeds 80 columns #243: FILE: kernel/bpf/check_btf.c:190: + verbose(env, "LD_ABS is only allowed in functions that return 'int'.\n"); WARNING: line length of 100 exceeds 80 columns #247: FILE: kernel/bpf/check_btf.c:194: + verbose(env, "tail_call is only allowed in functions that return 'int'.\n"); WARNING: line length of 84 exceeds 80 columns #251: FILE: kernel/bpf/check_btf.c:198: + env->subprog_info[i].name = btf_name_by_offset(btf, type->name_off); WARNING: line length of 84 exceeds 80 columns #310: FILE: kernel/bpf/check_btf.c:257: + verbose(env, "nonzero tailing record in line_info"); WARNING: line length of 103 exceeds 80 columns #312: FILE: kernel/bpf/check_btf.c:259: + offsetof(union bpf_attr, line_info_rec_size), WARNING: line length of 97 exceeds 80 columns #313: FILE: kernel/bpf/check_btf.c:260: + &expected_size, sizeof(expected_size))) WARNING: line length of 105 exceeds 80 columns #337: FILE: kernel/bpf/check_btf.c:284: + verbose(env, "Invalid line_info[%u].insn_off:%u (prev_offset:%u prog->len:%u)\n", WARNING: line length of 94 exceeds 80 columns #354: FILE: kernel/bpf/check_btf.c:301: + verbose(env, "Invalid line_info[%u].line_off or .file_name_off\n", i); WARNING: line length of 87 exceeds 80 columns #364: FILE: kernel/bpf/check_btf.c:311: + verbose(env, "missing bpf_line_info for func#%u\n", s); WARNING: line length of 90 exceeds 80 columns #375: FILE: kernel/bpf/check_btf.c:322: + verbose(env, "missing bpf_line_info for %u funcs starting from func#%u\n", WARNING: line length of 85 exceeds 80 columns #430: FILE: kernel/bpf/check_btf.c:377: + err = bpf_check_uarg_tail_zero(u_core_relo, expected_size, rec_size); WARNING: line length of 84 exceeds 80 columns #433: FILE: kernel/bpf/check_btf.c:380: + verbose(env, "nonzero tailing record in core_relo"); WARNING: line length of 103 exceeds 80 columns #435: FILE: kernel/bpf/check_btf.c:382: + offsetof(union bpf_attr, core_relo_rec_size), WARNING: line length of 97 exceeds 80 columns #436: FILE: kernel/bpf/check_btf.c:383: + &expected_size, sizeof(expected_size))) WARNING: line length of 84 exceeds 80 columns #447: FILE: kernel/bpf/check_btf.c:394: + if (core_relo.insn_off % 8 || core_relo.insn_off / 8 >= prog->len) { WARNING: line length of 88 exceeds 80 columns #448: FILE: kernel/bpf/check_btf.c:395: + verbose(env, "Invalid core_relo[%u].insn_off:%u prog->len:%u\n", total: 0 errors, 28 warnings, 0 checks, 966 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 03dd5bcc4ad3 ("bpf: Move BTF checking logic into check_btf.c") 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, 28 warnings, 0 checks, 966 lines checked