Re: [PATCH v3 1/2] arm64: pageattr: Use pagewalk API to change memory permissions

From: Mike Rapoport
Date: Sun Jun 15 2025 - 03:25:56 EST


On Fri, Jun 13, 2025 at 05:27:27PM +0100, Lorenzo Stoakes wrote:
> On Fri, Jun 13, 2025 at 07:13:51PM +0530, Dev Jain wrote:
> > -/*
> > - * This function assumes that the range is mapped with PAGE_SIZE pages.
> > - */
> > -static int __change_memory_common(unsigned long start, unsigned long size,
> > +static int ___change_memory_common(unsigned long start, unsigned long size,
> > pgprot_t set_mask, pgprot_t clear_mask)
>
> I wouldn't presume to comment on conventions in arm64 arch code, but that's
> a lot of underscores :P
>
> I wonder if this is the best name for it as you're not only invoking it
> from __change_memory_common()?

Could update_range_pgport() work?

> And yes this is a pedantic comment, I realise :)
>

--
Sincerely yours,
Mike.