WARNING: please, no spaces at the start of a line #117: FILE: kernel/bpf/trampoline.c:1443: + defined(CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS)$ WARNING: line length of 86 exceeds 80 columns #132: FILE: kernel/bpf/trampoline.c:1458: +static int register_fentry_multi(struct bpf_trampoline *tr, void *new_addr, void *ptr) CHECK: No space is necessary after a cast #134: FILE: kernel/bpf/trampoline.c:1460: + unsigned long addr = (unsigned long) new_addr; WARNING: line length of 93 exceeds 80 columns #143: FILE: kernel/bpf/trampoline.c:1469: +static int unregister_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, CHECK: No space is necessary after a cast #146: FILE: kernel/bpf/trampoline.c:1472: + unsigned long addr = (unsigned long) old_addr; WARNING: line length of 81 exceeds 80 columns #152: FILE: kernel/bpf/trampoline.c:1478: + return add_ftrace_hash_entry_direct(data->unreg, ip, addr) ? 0 : -ENOMEM; WARNING: line length of 89 exceeds 80 columns #155: FILE: kernel/bpf/trampoline.c:1481: +static int modify_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, WARNING: line length of 81 exceeds 80 columns #156: FILE: kernel/bpf/trampoline.c:1482: + void *new_addr, bool lock_direct_mutex, void *ptr) CHECK: No space is necessary after a cast #158: FILE: kernel/bpf/trampoline.c:1484: + unsigned long addr = (unsigned long) new_addr; WARNING: line length of 82 exceeds 80 columns #164: FILE: kernel/bpf/trampoline.c:1490: + return add_ftrace_hash_entry_direct(data->modify, ip, addr) ? 0 : -ENOMEM; WARNING: line length of 84 exceeds 80 columns #173: FILE: kernel/bpf/trampoline.c:1499: +static int bpf_get_btf_id_target(struct btf *btf, struct bpf_prog *prog, u32 btf_id, WARNING: line length of 91 exceeds 80 columns #240: FILE: kernel/bpf/trampoline.c:1566: + err = btf_id_allow_sleepable(btf_id, tgt_info.tgt_addr, prog, btf); WARNING: line length of 87 exceeds 80 columns #262: FILE: kernel/bpf/trampoline.c:1588: + err = __bpf_trampoline_link_prog(&mnode->node, mnode->trampoline, NULL, WARNING: line length of 86 exceeds 80 columns #277: FILE: kernel/bpf/trampoline.c:1603: + WARN_ON_ONCE(update_ftrace_direct_del(&direct_ops, data.reg)); WARNING: line length of 90 exceeds 80 columns #290: FILE: kernel/bpf/trampoline.c:1616: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, CHECK: Alignment should match open parenthesis #291: FILE: kernel/bpf/trampoline.c:1617: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, + NULL, &trampoline_multi_ops, &data)); WARNING: line length of 91 exceeds 80 columns #305: FILE: kernel/bpf/trampoline.c:1631: +int bpf_trampoline_multi_detach(struct bpf_prog *prog, struct bpf_tracing_multi_link *link) WARNING: line length of 90 exceeds 80 columns #323: FILE: kernel/bpf/trampoline.c:1649: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, CHECK: Alignment should match open parenthesis #324: FILE: kernel/bpf/trampoline.c:1650: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, + NULL, &trampoline_multi_ops, &data)); WARNING: line length of 87 exceeds 80 columns #330: FILE: kernel/bpf/trampoline.c:1656: + WARN_ON_ONCE(update_ftrace_direct_mod(&direct_ops, data.modify, true)); WARNING: line length of 92 exceeds 80 columns #341: FILE: kernel/bpf/trampoline.c:1667: +#endif /* CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS && CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS */ total: 0 errors, 16 warnings, 5 checks, 284 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 c4f187dad1e1 ("bpf: Add bpf_trampoline_multi_attach/detach functions") 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, 16 warnings, 5 checks, 284 lines checked