Skip to contentSkip to conversation

arm64: mm: Remove misleading pte_none() comment from ptep_try_set()

PATCH Applied Tejun Heo 2 participants 2 messages Jun 14

Subsystems (3)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 arm64: mm: Remove misleading pte_none() comment from ptep_try_set()

This comment was thoughtlessly copied from the x86 version and doesn't apply to arm64. Remove it.

---
 arch/arm64/include/asm/pgtable.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm64/include/asm/pgtable.h +0 -4
index 3ce0f2a6cab6..b0213799ebc4 100644
@@ -1830,10 +1830,6 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm,
 	return __ptep_get_and_clear(mm, addr, ptep);
 }
 
-/*
- * Note: strictly-zero compare is narrower than pte_none(), but the gap is
- * harmless: a fresh kernel PTE has no software bits set.
- */
 static inline bool ptep_try_set(pte_t *ptep, pte_t new_pte)
 {
 	pteval_t old = 0;
Signature · 1 line
2.51.0
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Sun, 14 Jun 2026 11:02:09 -1000 you wrote:

This comment was thoughtlessly copied from the x86 version and doesn't apply to arm64. Remove it.

---
 arch/arm64/include/asm/pgtable.h | 4 ----
 1 file changed, 4 deletions(-)

Here is the summary with links:
- [bpf-next] arm64: mm: Remove misleading pte_none() comment from ptep_try_set()

    https://git.kernel.org/bpf/bpf-next/c/16deef8de06e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html