[PATCH] arm64: hugetlbpage: avoid unused-but-set-parameter warning (gcc-16)
Arnd Bergmann
arnd at arndb.de
Tue Feb 3 10:23:25 PST 2026
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
More information about the linux-arm-kernel
mailing list