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

Arnd Bergmann arnd at arndb.de
Mon Feb 16 03:48:59 PST 2026


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



More information about the linux-arm-kernel mailing list