Skip to contentSkip to conversation

parisc: Rename pte_needs_flush() to pte_needs_cache_flush() in cache.c

PATCH New John David Anglin 1 participant 1 message Jul 21, 2025 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Rename pte_needs_flush() to pte_needs_cache_flush() in cache.c

parisc: Rename pte_needs_flush() to pte_needs_cache_flush() in cache.c

The local name used in cache.c conflicts the declaration in include/asm-generic/tlb.h.

---

arch/parisc/kernel/cache.c +2 -2
index db531e58d70e..37ca484cc495 100644
@@ -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)