]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
parisc: Rename pte_needs_flush() to pte_needs_cache_flush() in cache.c
authorJohn David Anglin <dave.anglin@bell.net>
Mon, 21 Jul 2025 19:56:04 +0000 (15:56 -0400)
committerHelge Deller <deller@gmx.de>
Fri, 25 Jul 2025 20:45:23 +0000 (22:45 +0200)
The local name used in cache.c conflicts the declaration in
include/asm-generic/tlb.h.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v5.12+
arch/parisc/kernel/cache.c

index db531e58d70ef01d5461805f4d2430a0d9efd34b..3b37a7e7abe4b3b58074fb0144487c8305d07764 100644 (file)
@@ -429,7 +429,7 @@ static inline pte_t *get_ptep(struct mm_struct *mm, unsigned long addr)
        return ptep;
 }
 
-static inline bool pte_needs_flush(pte_t pte)
+static inline bool pte_needs_cache_flush(pte_t pte)
 {
        return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_NO_CACHE))
                == (_PAGE_PRESENT | _PAGE_ACCESSED);
@@ -630,7 +630,7 @@ static void flush_cache_page_if_present(struct vm_area_struct *vma,
        ptep = get_ptep(vma->vm_mm, vmaddr);
        if (ptep) {
                pte = ptep_get(ptep);
-               needs_flush = pte_needs_flush(pte);
+               needs_flush = pte_needs_cache_flush(pte);
                pte_unmap(ptep);
        }
        if (needs_flush)