]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: mm: Remove misleading pte_none() comment from ptep_try_set()
authorTejun Heo <tj@kernel.org>
Sun, 14 Jun 2026 21:02:09 +0000 (11:02 -1000)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 14 Jun 2026 23:21:50 +0000 (16:21 -0700)
This comment was thoughtlessly copied from the x86 version and doesn't
apply to arm64. Remove it.

Reported-by: Will Deacon <will@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20260614210209.2371030-1-tj@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/include/asm/pgtable.h

index 3e579c26b383c6c98b12ed8f4f1e1082669a9c8e..61ba781061e884b5be7ba840fd1b30a984202d30 100644 (file)
@@ -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;