WARNING: line length of 101 exceeds 80 columns #116: FILE: kernel/bpf/trampoline.c:1457: +#if defined(CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS) && defined(CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS) WARNING: line length of 86 exceeds 80 columns #131: FILE: kernel/bpf/trampoline.c:1472: +static int register_fentry_multi(struct bpf_trampoline *tr, void *new_addr, void *ptr) CHECK: No space is necessary after a cast #133: FILE: kernel/bpf/trampoline.c:1474: + unsigned long addr = (unsigned long) new_addr; WARNING: line length of 93 exceeds 80 columns #142: FILE: kernel/bpf/trampoline.c:1483: +static int unregister_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, CHECK: No space is necessary after a cast #145: FILE: kernel/bpf/trampoline.c:1486: + unsigned long addr = (unsigned long) old_addr; WARNING: line length of 81 exceeds 80 columns #151: FILE: kernel/bpf/trampoline.c:1492: + return add_ftrace_hash_entry_direct(data->unreg, ip, addr) ? 0 : -ENOMEM; WARNING: line length of 89 exceeds 80 columns #154: FILE: kernel/bpf/trampoline.c:1495: +static int modify_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, WARNING: line length of 81 exceeds 80 columns #155: FILE: kernel/bpf/trampoline.c:1496: + void *new_addr, bool lock_direct_mutex, void *ptr) CHECK: No space is necessary after a cast #157: FILE: kernel/bpf/trampoline.c:1498: + unsigned long addr = (unsigned long) new_addr; WARNING: line length of 82 exceeds 80 columns #163: FILE: kernel/bpf/trampoline.c:1504: + return add_ftrace_hash_entry_direct(data->modify, ip, addr) ? 0 : -ENOMEM; WARNING: line length of 83 exceeds 80 columns #194: FILE: kernel/bpf/trampoline.c:1535: + err = bpf_check_attach_target(NULL, prog, NULL, ids[i], &tgt_info); WARNING: line length of 86 exceeds 80 columns #198: FILE: kernel/bpf/trampoline.c:1539: + key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, ids[i]); WARNING: line length of 87 exceeds 80 columns #214: FILE: kernel/bpf/trampoline.c:1555: + err = __bpf_trampoline_link_prog(&mnode->node, mnode->trampoline, NULL, WARNING: line length of 86 exceeds 80 columns #229: FILE: kernel/bpf/trampoline.c:1570: + WARN_ON_ONCE(update_ftrace_direct_del(&direct_ops, data.reg)); WARNING: line length of 90 exceeds 80 columns #242: FILE: kernel/bpf/trampoline.c:1583: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, CHECK: Alignment should match open parenthesis #243: FILE: kernel/bpf/trampoline.c:1584: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, + NULL, &trampoline_multi_ops, &data)); WARNING: line length of 91 exceeds 80 columns #255: FILE: kernel/bpf/trampoline.c:1596: +int bpf_trampoline_multi_detach(struct bpf_prog *prog, struct bpf_tracing_multi_link *link) WARNING: line length of 90 exceeds 80 columns #275: FILE: kernel/bpf/trampoline.c:1616: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, mnode->trampoline, CHECK: Alignment should match open parenthesis #276: 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 87 exceeds 80 columns #282: FILE: kernel/bpf/trampoline.c:1623: + WARN_ON_ONCE(update_ftrace_direct_mod(&direct_ops, data.modify, true)); WARNING: line length of 93 exceeds 80 columns #293: FILE: kernel/bpf/trampoline.c:1634: +#endif /* CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS) && CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS */ total: 0 errors, 16 warnings, 5 checks, 236 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 ff5c1c2fbd84 ("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, 236 lines checked