Re: [PATCH 05/12] mm/oom_kill: add `const` to pointer parameter

From: Andrew Morton
Date: Sat Aug 30 2025 - 21:49:51 EST


On Sat, 30 Aug 2025 08:26:07 +0200 Max Kellermann <max.kellermann@xxxxxxxxx> wrote:

> On Sat, Aug 30, 2025 at 1:03 AM Vishal Moola (Oracle)
> <vishal.moola@xxxxxxxxx> wrote:
> > > -extern bool process_shares_mm(struct task_struct *p, struct mm_struct *mm);
> > > +extern bool process_shares_mm(struct task_struct *p, const struct mm_struct *mm);
> >
> > Nowadays we're dropping the extern keyword.
>
> I can do that - is it acceptable to do that in the same patch?

The culture is "ooh ooh ooh, you can't do two things in the same
patch". My culture is well, gee, it's simple and obvious and makes the
kernel better, so I think we can handle it.