CHECK: Comparison to NULL could be written "ctx->image" #200: 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 92 exceeds 80 columns #297: FILE: arch/loongarch/net/bpf_jit.c:1554: + invoke_bpf_prog(ctx, tn->nodes[i], args_off, retval_off, run_ctx_off, true); WARNING: line length of 104 exceeds 80 columns #306: FILE: arch/loongarch/net/bpf_jit.c:1603: + const struct btf_func_model *m, struct bpf_tramp_nodes *tnodes, WARNING: line length of 82 exceeds 80 columns #330: FILE: arch/loongarch/net/bpf_jit.c:1757: + ret = invoke_bpf_prog(ctx, fentry->nodes[i], args_off, retval_off, WARNING: line length of 83 exceeds 80 columns #338: FILE: arch/loongarch/net/bpf_jit.c:1763: + branches = kcalloc(fmod_ret->nr_nodes, sizeof(u32 *), GFP_KERNEL); WARNING: line length of 102 exceeds 80 columns #355: FILE: arch/loongarch/net/bpf_jit.c:1793: + ret = invoke_bpf_prog(ctx, fexit->nodes[i], args_off, retval_off, run_ctx_off, false); WARNING: line length of 91 exceeds 80 columns #364: FILE: arch/loongarch/net/bpf_jit.c:1861: + u32 flags, struct bpf_tramp_nodes *tnodes, void *func_addr) WARNING: line length of 83 exceeds 80 columns #373: FILE: arch/loongarch/net/bpf_jit.c:1877: + ret = __arch_prepare_bpf_trampoline(&ctx, im, m, tnodes, func_addr, flags); WARNING: line length of 84 exceeds 80 columns #391: FILE: arch/loongarch/net/bpf_jit.c:1907: + ret = __arch_prepare_bpf_trampoline(&ctx, &im, m, tnodes, func_addr, flags); WARNING: line length of 82 exceeds 80 columns #404: FILE: arch/powerpc/net/bpf_jit_comp.c:515: + struct bpf_tramp_node *n, int regs_off, int retval_off, WARNING: line length of 87 exceeds 80 columns #432: FILE: arch/powerpc/net/bpf_jit_comp.c:597: + struct bpf_tramp_nodes *tn, int regs_off, int retval_off, WARNING: line length of 93 exceeds 80 columns #443: FILE: arch/powerpc/net/bpf_jit_comp.c:609: + if (invoke_bpf_prog(image, ro_image, ctx, tn->nodes[i], regs_off, retval_off, WARNING: line length of 97 exceeds 80 columns #473: FILE: arch/powerpc/net/bpf_jit_comp.c:942: + if (invoke_bpf_prog(image, ro_image, ctx, fentry->nodes[i], regs_off, retval_off, WARNING: line length of 96 exceeds 80 columns #500: FILE: arch/powerpc/net/bpf_jit_comp.c:1008: + if (invoke_bpf_prog(image, ro_image, ctx, fexit->nodes[i], regs_off, retval_off, WARNING: line length of 96 exceeds 80 columns #515: FILE: arch/powerpc/net/bpf_jit_comp.c:1079: + ret = __arch_prepare_bpf_trampoline(&im, NULL, NULL, NULL, m, flags, tnodes, func_addr); WARNING: line length of 85 exceeds 80 columns #544: FILE: arch/riscv/net/bpf_jit_comp64.c:937: +static int invoke_bpf_prog(struct bpf_tramp_node *node, int args_off, int retval_off, WARNING: line length of 96 exceeds 80 columns #555: FILE: arch/riscv/net/bpf_jit_comp64.c:945: + emit_store_stack_imm64(RV_REG_T1, -run_ctx_off + cookie_off, node->cookie, ctx); WARNING: line length of 86 exceeds 80 columns #582: FILE: arch/riscv/net/bpf_jit_comp64.c:1014: + err = invoke_bpf_prog(tn->nodes[i], args_off, retval_off, run_ctx_off, WARNING: line length of 87 exceeds 80 columns #650: FILE: arch/riscv/net/bpf_jit_comp64.c:1205: + ret = invoke_bpf_prog(fmod_ret->nodes[i], args_off, retval_off, WARNING: line length of 84 exceeds 80 columns #690: FILE: arch/riscv/net/bpf_jit_comp64.c:1317: + ret = __arch_prepare_bpf_trampoline(&im, m, tnodes, func_addr, flags, &ctx); WARNING: line length of 83 exceeds 80 columns #708: FILE: arch/riscv/net/bpf_jit_comp64.c:1349: + ret = __arch_prepare_bpf_trampoline(im, m, tnodes, func_addr, flags, &ctx); WARNING: line length of 90 exceeds 80 columns #922: FILE: arch/x86/net/bpf_jit_comp.c:3123: + if (invoke_bpf_prog(m, &prog, tl->nodes[i], stack_size, run_ctx_off, true, CHECK: Please use a blank line after function/struct/union/enum declarations #1107: FILE: include/linux/bpf.h:1549: } +static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_node *node, WARNING: line length of 94 exceeds 80 columns #1156: 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 #1198: 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 #1199: FILE: include/linux/bpf.h:3135: + const struct bpf_link_ops *ops, struct bpf_prog *prog, WARNING: line length of 84 exceeds 80 columns #1200: FILE: include/linux/bpf.h:3136: + enum bpf_attach_type attach_type, u64 cookie) WARNING: line length of 94 exceeds 80 columns #1275: FILE: kernel/bpf/bpf_struct_ops.c:824: + &bpf_struct_ops_link_lops, prog, prog->expected_attach_type, 0); CHECK: Alignment should match open parenthesis #1275: FILE: kernel/bpf/bpf_struct_ops.c:824: + 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 #1286: FILE: kernel/bpf/bpf_struct_ops.c:837: + err = bpf_struct_ops_prepare_trampoline(tnodes, &link->node, &st_ops->func_models[i], WARNING: line length of 98 exceeds 80 columns #1333: 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 #1343: 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 #1361: 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 #1376: FILE: kernel/bpf/syscall.c:3645: + bpf_tramp_link_init(&fslink->fexit, BPF_LINK_TYPE_TRACING, WARNING: line length of 86 exceeds 80 columns #1377: FILE: kernel/bpf/syscall.c:3646: + &bpf_tracing_link_lops, prog, attach_type, WARNING: line length of 83 exceeds 80 columns #1391: FILE: kernel/bpf/syscall.c:3660: + &bpf_tracing_link_lops, prog, attach_type, bpf_cookie); WARNING: line length of 81 exceeds 80 columns #1440: FILE: kernel/bpf/trampoline.c:502: + hlist_for_each_entry(node, &tr->progs_hlist[kind], tramp_hlist) { WARNING: line length of 86 exceeds 80 columns #1567: FILE: kernel/bpf/trampoline.c:868: + fslink = container_of(node, struct bpf_fsession_link, link.link.node); WARNING: line length of 99 exceeds 80 columns #1568: FILE: kernel/bpf/trampoline.c:869: + hlist_add_head(&fslink->fexit.node.tramp_hlist, &tr->progs_hlist[BPF_TRAMP_FEXIT]); WARNING: line length of 84 exceeds 80 columns #1597: FILE: kernel/bpf/trampoline.c:895: + err = __bpf_trampoline_link_prog(node, tr, tgt_prog, &trampoline_ops, NULL); WARNING: line length of 85 exceeds 80 columns #1621: FILE: kernel/bpf/trampoline.c:921: + container_of(node, struct bpf_fsession_link, link.link.node); WARNING: line length of 86 exceeds 80 columns #1644: FILE: kernel/bpf/trampoline.c:940: + err = __bpf_trampoline_unlink_prog(node, tr, tgt_prog, &trampoline_ops, NULL); WARNING: line length of 101 exceeds 80 columns #1653: FILE: kernel/bpf/trampoline.c:955: + WARN_ON_ONCE(bpf_trampoline_unlink_prog(&shim_link->link.node, shim_link->trampoline, NULL)); CHECK: Alignment should match open parenthesis #1664: FILE: kernel/bpf/trampoline.c:1002: + 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 #1679: FILE: kernel/bpf/trampoline.c:1015: + hlist_for_each_entry(node, &tr->progs_hlist[kind], tramp_hlist) { WARNING: line length of 97 exceeds 80 columns #1684: FILE: kernel/bpf/trampoline.c:1019: + return container_of(node, struct bpf_shim_tramp_link, link.node); WARNING: line length of 97 exceeds 80 columns #1693: FILE: kernel/bpf/trampoline.c:1069: + err = __bpf_trampoline_link_prog(&shim_link->link.node, tr, NULL, &trampoline_ops, NULL); WARNING: line length of 84 exceeds 80 columns #1711: FILE: kernel/bpf/trampoline.c:1418: + struct bpf_tramp_nodes *tnodes, void *func_addr) WARNING: line length of 86 exceeds 80 columns #1745: 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, 44 warnings, 5 checks, 1534 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 da73be6319a6 ("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, 44 warnings, 5 checks, 1534 lines checked