[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aE51cWMkSfNJ5i4c@kernel.org>
Date: Sun, 15 Jun 2025 10:25:37 +0300
From: Mike Rapoport <rppt@...nel.org>
To: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
Cc: Dev Jain <dev.jain@....com>, akpm@...ux-foundation.org,
david@...hat.com, catalin.marinas@....com, will@...nel.org,
Liam.Howlett@...cle.com, vbabka@...e.cz, surenb@...gle.com,
mhocko@...e.com, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
suzuki.poulose@....com, steven.price@....com, gshan@...hat.com,
linux-arm-kernel@...ts.infradead.org, yang@...amperecomputing.com,
ryan.roberts@....com, anshuman.khandual@....com
Subject: Re: [PATCH v3 1/2] arm64: pageattr: Use pagewalk API to change
memory permissions
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.
Powered by blists - more mailing lists