[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <6809df4c-f427-4245-8385-a8add6ca2ed5@app.fastmail.com>
Date: Tue, 03 Feb 2026 19:23:25 +0100
From: "Arnd Bergmann" <arnd@...db.de>
To: "Catalin Marinas" <catalin.marinas@....com>,
"Arnd Bergmann" <arnd@...nel.org>
Cc: "Will Deacon" <will@...nel.org>,
"Anshuman Khandual" <anshuman.khandual@....com>,
"Ryan Roberts" <ryan.roberts@....com>, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arm64: hugetlbpage: avoid unused-but-set-parameter warning
(gcc-16)
On Tue, Feb 3, 2026, at 19:17, Catalin Marinas wrote:
> On Tue, Feb 03, 2026 at 05:21:23PM +0100, Arnd Bergmann wrote:
>>
>> ncontig = num_contig_ptes(sz, &pgsize);
>>
>> - for (i = 0; i < ncontig; i++, addr += pgsize, ptep++)
>> - __pte_clear(mm, addr, ptep);
>> + for (i = 0; i < ncontig; i++, ptep++)
>> + __pte_clear(mm, addr + pgsize*i, ptep);
>
> Should we not fix the macro instead? Either with a (void)(addr) or just
> turn it into an inline function (still compiling):
Good idea, I'll add your inline function to my randconfig setup
instead and will let you know if I run into other problems.
Arnd
Powered by blists - more mailing lists