CHECK: Comparison to NULL could be written "ctx->image" #196: FILE: arch/arm64/net/bpf_jit_comp.c:2727: + for (i = 0; i < fmod_ret->nr_nodes && ctx->image != NULL; i++) { WARNING: line length of 90 exceeds 80 columns #448: FILE: arch/x86/net/bpf_jit_comp.c:3132: + if (invoke_bpf_prog(m, &prog, tl->nodes[i], stack_size, run_ctx_off, true, WARNING: line length of 94 exceeds 80 columns #666: FILE: include/linux/bpf.h:2195: + if (fentries.nodes[i]->link->prog->expected_attach_type == BPF_TRACE_FSESSION) WARNING: line length of 92 exceeds 80 columns #708: FILE: include/linux/bpf.h:3134: +static inline void bpf_tramp_link_init(struct bpf_tramp_link *link, enum bpf_link_type type, WARNING: line length of 93 exceeds 80 columns #709: FILE: include/linux/bpf.h:3135: + const struct bpf_link_ops *ops, struct bpf_prog *prog, WARNING: line length of 84 exceeds 80 columns #710: FILE: include/linux/bpf.h:3136: + enum bpf_attach_type attach_type, u64 cookie) WARNING: line length of 94 exceeds 80 columns #785: FILE: kernel/bpf/bpf_struct_ops.c:825: + &bpf_struct_ops_link_lops, prog, prog->expected_attach_type, 0); CHECK: Alignment should match open parenthesis #785: FILE: kernel/bpf/bpf_struct_ops.c:825: + bpf_tramp_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, + &bpf_struct_ops_link_lops, prog, prog->expected_attach_type, 0); CHECK: Alignment should match open parenthesis #796: FILE: kernel/bpf/bpf_struct_ops.c:838: + err = bpf_struct_ops_prepare_trampoline(tnodes, &link->node, &st_ops->func_models[i], WARNING: line length of 98 exceeds 80 columns #843: FILE: kernel/bpf/syscall.c:3527: + struct bpf_tracing_link *tr_link = container_of(link, struct bpf_tracing_link, link.link); WARNING: line length of 98 exceeds 80 columns #853: FILE: kernel/bpf/syscall.c:3535: + struct bpf_tracing_link *tr_link = container_of(link, struct bpf_tracing_link, link.link); WARNING: line length of 98 exceeds 80 columns #871: FILE: kernel/bpf/syscall.c:3555: + struct bpf_tracing_link *tr_link = container_of(link, struct bpf_tracing_link, link.link); WARNING: line length of 82 exceeds 80 columns #886: FILE: kernel/bpf/syscall.c:3645: + bpf_tramp_link_init(&fslink->fexit, BPF_LINK_TYPE_TRACING, WARNING: line length of 86 exceeds 80 columns #887: FILE: kernel/bpf/syscall.c:3646: + &bpf_tracing_link_lops, prog, attach_type, WARNING: line length of 83 exceeds 80 columns #901: FILE: kernel/bpf/syscall.c:3660: + &bpf_tracing_link_lops, prog, attach_type, bpf_cookie); WARNING: line length of 81 exceeds 80 columns #950: FILE: kernel/bpf/trampoline.c:509: + hlist_for_each_entry(node, &tr->progs_hlist[kind], tramp_hlist) { WARNING: line length of 86 exceeds 80 columns #1077: FILE: kernel/bpf/trampoline.c:880: + fslink = container_of(node, struct bpf_fsession_link, link.link.node); WARNING: line length of 99 exceeds 80 columns #1078: FILE: kernel/bpf/trampoline.c:881: + hlist_add_head(&fslink->fexit.node.tramp_hlist, &tr->progs_hlist[BPF_TRAMP_FEXIT]); WARNING: line length of 84 exceeds 80 columns #1107: FILE: kernel/bpf/trampoline.c:907: + err = __bpf_trampoline_link_prog(node, tr, tgt_prog, &trampoline_ops, NULL); WARNING: line length of 85 exceeds 80 columns #1131: FILE: kernel/bpf/trampoline.c:933: + container_of(node, struct bpf_fsession_link, link.link.node); WARNING: line length of 86 exceeds 80 columns #1154: FILE: kernel/bpf/trampoline.c:952: + err = __bpf_trampoline_unlink_prog(node, tr, tgt_prog, &trampoline_ops, NULL); WARNING: line length of 101 exceeds 80 columns #1163: FILE: kernel/bpf/trampoline.c:967: + WARN_ON_ONCE(bpf_trampoline_unlink_prog(&shim_link->link.node, shim_link->trampoline, NULL)); CHECK: Alignment should match open parenthesis #1174: FILE: kernel/bpf/trampoline.c:1014: + bpf_tramp_link_init(&shim_link->link, BPF_LINK_TYPE_UNSPEC, + &bpf_shim_tramp_link_lops, p, attach_type, 0); WARNING: line length of 81 exceeds 80 columns #1189: FILE: kernel/bpf/trampoline.c:1027: + hlist_for_each_entry(node, &tr->progs_hlist[kind], tramp_hlist) { WARNING: line length of 97 exceeds 80 columns #1194: FILE: kernel/bpf/trampoline.c:1031: + return container_of(node, struct bpf_shim_tramp_link, link.node); WARNING: line length of 97 exceeds 80 columns #1203: FILE: kernel/bpf/trampoline.c:1084: + err = __bpf_trampoline_link_prog(&shim_link->link.node, tr, NULL, &trampoline_ops, NULL); WARNING: line length of 84 exceeds 80 columns #1221: FILE: kernel/bpf/trampoline.c:1433: + struct bpf_tramp_nodes *tnodes, void *func_addr) WARNING: line length of 86 exceeds 80 columns #1255: FILE: net/bpf/bpf_dummy_struct_ops.c:174: + bpf_tramp_link_init(link, BPF_LINK_TYPE_STRUCT_OPS, &bpf_struct_ops_link_lops, total: 0 errors, 24 warnings, 4 checks, 1094 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 635038b85c23 ("bpf: Add struct bpf_tramp_node object") 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, 24 warnings, 4 checks, 1094 lines checked