Thread (3 messages) 3 messages, 3 authors, 2026-02-19

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

From: Will Deacon <will@kernel.org>
Date: 2026-02-19 13:27:22
Also in: lkml

On Mon, 16 Feb 2026 11:54:21 +0100, Arnd Bergmann wrote:
gcc-16 warns about an instance that older compilers did not:

arch/arm64/mm/hugetlbpage.c: In function 'huge_pte_clear':
arch/arm64/mm/hugetlbpage.c:369:57: error: parameter 'addr' set but not used [-Werror=unused-but-set-parameter=]

The issue here is that __pte_clear() does not actually use its second
argument, but when CONFIG_ARM64_CONTPTE is enabled it still gets
updated.

[...]
Applied to arm64 (for-next/core), thanks!

[1/1] arm64: hugetlbpage: avoid unused-but-set-parameter warning (gcc-16)
      https://git.kernel.org/arm64/c/729a2e8e9ac4

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help