Skip to content

Commit e9c837c

Browse files
danglin44hdeller
authored andcommitted
parisc: Avoid spurious inequivalent alias kernel error messages
This patch changes flush_dcache_page() to only print inequivalent alias error messages on systems that require coherency. Inequivalent aliases can occur on systems that don't require coherency and this can cause spurious messages. Signed-off-by: John David Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent f973cce commit e9c837c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void flush_dcache_page(struct page *page)
365365
if (old_addr == 0 || (old_addr & (SHM_COLOUR - 1))
366366
!= (addr & (SHM_COLOUR - 1))) {
367367
__flush_cache_page(mpnt, addr, page_to_phys(page));
368-
if (old_addr)
368+
if (parisc_requires_coherency() && old_addr)
369369
printk(KERN_ERR "INEQUIVALENT ALIASES 0x%lx and 0x%lx in file %pD\n", old_addr, addr, mpnt->vm_file);
370370
old_addr = addr;
371371
}

0 commit comments

Comments
 (0)