Re: [PATCH] rust: helpers: move list_lru and task_work helpers out of binder.c

From: Miguel Ojeda

Date: Tue Jun 23 2026 - 05:57:21 EST


On Tue, Jun 23, 2026 at 11:39 AM Xiaobo Liu <cppcoffee@xxxxxxxxx> wrote:
>
> The helpers in binder.c wrap generic list_lru and task_work inline
> functions and have nothing to do with binder. Move them to mm.c and
> task_work.c respectively, where they belong by subsystem.
>
> Signed-off-by: Xiaobo Liu <cppcoffee@xxxxxxxxx>

In general, please Cc the relevant maintainers/reviewers/subsystems as
well as the LKML -- `scripts/get_maintainer.pl` can help there;
otherwise, you can check `MAINTAINERS` manually too.

Doing so here for you to give you an idea of how it could look like --
I hope it helps.

> +#include <linux/list_lru.h>

Since you are creating a new file for `task_work`, what about one for
`list_lru` too?

(And we should likely add the new files to the respective
`MAINTAINERS` entries.)

Thanks!

Cheers,
Miguel