Skip to content

Commit 52ce940

Browse files
danglin44hdeller
authored andcommitted
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. Signed-off-by: John David Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]> Cc: [email protected] # v5.12+
1 parent 91428ca commit 52ce940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/parisc/kernel/cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static inline pte_t *get_ptep(struct mm_struct *mm, unsigned long addr)
429429
return ptep;
430430
}
431431

432-
static inline bool pte_needs_flush(pte_t pte)
432+
static inline bool pte_needs_cache_flush(pte_t pte)
433433
{
434434
return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_NO_CACHE))
435435
== (_PAGE_PRESENT | _PAGE_ACCESSED);
@@ -630,7 +630,7 @@ static void flush_cache_page_if_present(struct vm_area_struct *vma,
630630
ptep = get_ptep(vma->vm_mm, vmaddr);
631631
if (ptep) {
632632
pte = ptep_get(ptep);
633-
needs_flush = pte_needs_flush(pte);
633+
needs_flush = pte_needs_cache_flush(pte);
634634
pte_unmap(ptep);
635635
}
636636
if (needs_flush)

0 commit comments

Comments
 (0)