WARNING: line length of 101 exceeds 80 columns #94: FILE: kernel/bpf/trampoline.c:1407: +#if defined(CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS) && defined(CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS) WARNING: line length of 86 exceeds 80 columns #109: FILE: kernel/bpf/trampoline.c:1422: +static int register_fentry_multi(struct bpf_trampoline *tr, void *new_addr, void *ptr) WARNING: line length of 84 exceeds 80 columns #115: FILE: kernel/bpf/trampoline.c:1428: + (unsigned long) new_addr) ? 0 : -ENOMEM; CHECK: No space is necessary after a cast #115: FILE: kernel/bpf/trampoline.c:1428: + (unsigned long) new_addr) ? 0 : -ENOMEM; WARNING: line length of 104 exceeds 80 columns #118: FILE: kernel/bpf/trampoline.c:1431: +static int unregister_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, void *ptr) WARNING: line length of 84 exceeds 80 columns #124: FILE: kernel/bpf/trampoline.c:1437: + (unsigned long) old_addr) ? 0 : -ENOMEM; CHECK: No space is necessary after a cast #124: FILE: kernel/bpf/trampoline.c:1437: + (unsigned long) old_addr) ? 0 : -ENOMEM; WARNING: line length of 105 exceeds 80 columns #127: FILE: kernel/bpf/trampoline.c:1440: +static int modify_fentry_multi(struct bpf_trampoline *tr, u32 orig_flags, void *old_addr, void *new_addr, WARNING: line length of 84 exceeds 80 columns #134: FILE: kernel/bpf/trampoline.c:1447: + (unsigned long) new_addr) ? 0 : -ENOMEM; CHECK: No space is necessary after a cast #134: FILE: kernel/bpf/trampoline.c:1447: + (unsigned long) new_addr) ? 0 : -ENOMEM; WARNING: line length of 83 exceeds 80 columns #165: FILE: kernel/bpf/trampoline.c:1478: + err = bpf_check_attach_target(NULL, prog, NULL, ids[i], &tgt_info); WARNING: line length of 86 exceeds 80 columns #169: FILE: kernel/bpf/trampoline.c:1482: + key = bpf_trampoline_compute_key(NULL, prog->aux->attach_btf, ids[i]); WARNING: line length of 103 exceeds 80 columns #185: FILE: kernel/bpf/trampoline.c:1498: + err = __bpf_trampoline_link_prog(&mnode->node, tr, NULL, &trampoline_multi_ops, &data); WARNING: line length of 86 exceeds 80 columns #201: FILE: kernel/bpf/trampoline.c:1514: + WARN_ON_ONCE(update_ftrace_direct_del(&direct_ops, data.reg)); WARNING: line length of 81 exceeds 80 columns #218: FILE: kernel/bpf/trampoline.c:1531: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, tr, NULL, CHECK: Alignment should match open parenthesis #219: FILE: kernel/bpf/trampoline.c:1532: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, tr, NULL, + &trampoline_multi_ops, &data)); WARNING: line length of 91 exceeds 80 columns #233: FILE: kernel/bpf/trampoline.c:1546: +int bpf_trampoline_multi_detach(struct bpf_prog *prog, struct bpf_tracing_multi_link *link) WARNING: line length of 81 exceeds 80 columns #255: FILE: kernel/bpf/trampoline.c:1568: + WARN_ON_ONCE(__bpf_trampoline_unlink_prog(&mnode->node, tr, NULL, WARNING: line length of 89 exceeds 80 columns #256: FILE: kernel/bpf/trampoline.c:1569: + &trampoline_multi_ops, &data)); WARNING: line length of 87 exceeds 80 columns #262: FILE: kernel/bpf/trampoline.c:1575: + WARN_ON_ONCE(update_ftrace_direct_mod(&direct_ops, data.modify, true)); WARNING: line length of 93 exceeds 80 columns #274: FILE: kernel/bpf/trampoline.c:1587: +#endif /* CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS) && CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS */ total: 0 errors, 17 warnings, 4 checks, 229 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 ec7733265096 ("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, 17 warnings, 4 checks, 229 lines checked