Re: [PATCH] [v2] arm64: hugetlbpage: avoid unused-but-set-parameter warning (gcc-16)

From: Arnd Bergmann

Date: Mon Feb 16 2026 - 06:49:38 EST


On Mon, Feb 16, 2026, at 07:31, Dev Jain wrote:
> On 13/02/26 9:52 pm, Arnd Bergmann wrote:

>>
>> The issue here is that __pte_clear() does not actually use its second
>> argument when CONFIG_ARM64_CONTPTE is disabled.
>
> But that is true even when the config is on? __pte_clear has an
> unconditional definition.
>

No, you're right. I'll rephrase the changelog and send a v3.

When CONFIG_ARM64_CONTPTE is disabled, the warning doesn't
appear because the argument is unused by never changed as the
loop collapses into a single call.

Arnd