WARNING: line length of 82 exceeds 80 columns #112: FILE: kernel/bpf/helpers.c:3741: + ctx = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_task_work_context)); WARNING: line length of 97 exceeds 80 columns #120: FILE: kernel/bpf/helpers.c:3749: + struct bpf_task_work_context *ctx = container_of(rcu, struct bpf_task_work_context, rcu); WARNING: line length of 99 exceeds 80 columns #129: FILE: kernel/bpf/helpers.c:3758: + struct bpf_task_work_context *ctx = container_of(head, struct bpf_task_work_context, work); WARNING: line length of 98 exceeds 80 columns #150: FILE: kernel/bpf/helpers.c:3779: + * Read lock is needed to protect map key and value access below, it has to be done before WARNING: line length of 91 exceeds 80 columns #155: FILE: kernel/bpf/helpers.c:3784: + * This callback may start running before bpf_task_work_irq() switched the state to WARNING: line length of 88 exceeds 80 columns #156: FILE: kernel/bpf/helpers.c:3785: + * SCHEDULED so handle both transition variants SCHEDULING|SCHEDULED -> RUNNING. WARNING: line length of 84 exceeds 80 columns #197: FILE: kernel/bpf/helpers.c:3826: + call_rcu_tasks_trace(&ctx->rcu, bpf_task_work_context_free); WARNING: line length of 93 exceeds 80 columns #201: FILE: kernel/bpf/helpers.c:3830: + if (state == BPF_TW_FREED && task_work_cancel_match(ctx->task, task_work_match, ctx)) WARNING: line length of 86 exceeds 80 columns #202: FILE: kernel/bpf/helpers.c:3831: + goto free_context; /* successful cancellation, release and free ctx */ WARNING: line length of 92 exceeds 80 columns #210: FILE: kernel/bpf/helpers.c:3839: +static struct bpf_task_work_context *bpf_task_work_context_acquire(struct bpf_task_work *tw, WARNING: line length of 87 exceeds 80 columns #211: FILE: kernel/bpf/helpers.c:3840: + struct bpf_map *map) WARNING: line length of 82 exceeds 80 columns #227: FILE: kernel/bpf/helpers.c:3856: + old_ctx = unrcu_pointer(cmpxchg(ppc, NULL, RCU_INITIALIZER(ctx))); WARNING: line length of 85 exceeds 80 columns #248: FILE: kernel/bpf/helpers.c:3877: +static int bpf_task_work_schedule(struct task_struct *task, struct bpf_task_work *tw, WARNING: line length of 92 exceeds 80 columns #249: FILE: kernel/bpf/helpers.c:3878: + struct bpf_map *map, bpf_task_work_callback_t callback_fn, WARNING: line length of 92 exceeds 80 columns #250: FILE: kernel/bpf/helpers.c:3879: + struct bpf_prog_aux *aux, enum task_work_notify_mode mode) WARNING: line length of 97 exceeds 80 columns #306: FILE: kernel/bpf/helpers.c:3936: +__bpf_kfunc int bpf_task_work_schedule_signal(struct task_struct *task, struct bpf_task_work *tw, WARNING: line length of 97 exceeds 80 columns #310: FILE: kernel/bpf/helpers.c:3938: + bpf_task_work_callback_t callback, void *aux__prog) WARNING: line length of 91 exceeds 80 columns #313: FILE: kernel/bpf/helpers.c:3940: + return bpf_task_work_schedule(task, tw, map__map, callback, aux__prog, TWA_SIGNAL); WARNING: line length of 97 exceeds 80 columns #323: FILE: kernel/bpf/helpers.c:3954: +__bpf_kfunc int bpf_task_work_schedule_resume(struct task_struct *task, struct bpf_task_work *tw, WARNING: line length of 97 exceeds 80 columns #327: FILE: kernel/bpf/helpers.c:3956: + bpf_task_work_callback_t callback, void *aux__prog) WARNING: line length of 85 exceeds 80 columns #333: FILE: kernel/bpf/helpers.c:3961: + return bpf_task_work_schedule(task, tw, map__map, callback, aux__prog, mode); WARNING: line length of 82 exceeds 80 columns #344: FILE: kernel/bpf/helpers.c:3972: + /* No need do rcu_read_lock as no other codepath can reset this pointer */ WARNING: line length of 97 exceeds 80 columns #345: FILE: kernel/bpf/helpers.c:3973: + ctx = unrcu_pointer(xchg((struct bpf_task_work_context __force __rcu **)&tw->ctx, NULL)); WARNING: line length of 98 exceeds 80 columns #352: FILE: kernel/bpf/helpers.c:3980: + /* If we can't cancel task work, rely on task work callback to free the context */ WARNING: line length of 96 exceeds 80 columns #360: FILE: kernel/bpf/helpers.c:3988: + /* In all below cases scheduling logic should detect context state change and cleanup */ total: 0 errors, 25 warnings, 0 checks, 310 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 3705bdb8fdca ("bpf: task work scheduling kfuncs") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE 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, 25 warnings, 0 checks, 310 lines checked