From: Tejun Heo Date: Sun, 14 Jun 2026 21:02:09 +0000 (-1000) Subject: arm64: mm: Remove misleading pte_none() comment from ptep_try_set() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16deef8de06ed69aa79d037a168a70407a84a5ca;p=thirdparty%2Flinux.git 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. Reported-by: Will Deacon Signed-off-by: Tejun Heo Link: https://lore.kernel.org/r/20260614210209.2371030-1-tj@kernel.org Signed-off-by: Alexei Starovoitov --- diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index 3e579c26b383..61ba781061e8 100644 --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -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;