Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] misc: fastrpc: unused forward declaration of fastrpc_context_put() --
commit 8ed1609862d2b846e6b55b9095d296720f5399b3 Author: Anandu Krishnan E <[email protected]> misc: fastrpc: remove dead context drain in fastrpc_user_free() This commit removes the unreachable loop over fl->pending in fastrpc_user_free() because each invoke context holds a reference on fl and unlinks itself from fl->pending before dropping that reference. > diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c > index 9e760f68bcaf2..bb0c30419611c 100644 > --- a/drivers/misc/fastrpc.c > +++ b/drivers/misc/fastrpc.c > @@ -568,17 +568,11 @@ static void fastrpc_context_put(struct > fastrpc_invoke_ctx *ctx); > static void fastrpc_user_free(struct kref *ref) > { > struct fastrpc_user *fl = container_of(ref, struct fastrpc_user, > refcount); > - struct fastrpc_invoke_ctx *ctx, *n; > struct fastrpc_map *map, *m; > struct fastrpc_buf *buf, *b; > > fastrpc_buf_free(fl->init_mem); > > - list_for_each_entry_safe(ctx, n, &fl->pending, node) { > - list_del(&ctx->node); > - fastrpc_context_put(ctx); > - } [Severity: Low] Can the forward declaration of fastrpc_context_put() right above fastrpc_user_free() also be removed now that fastrpc_user_free() no longer calls it before its definition? -- Sashiko AI review ยท https://sashiko.dev/#/patchset/20261117-interrupted-invoke-v4-v4-0-2320a8a7e...@oss.qualcomm.com?part=1
