[PATCH v1 1/8] powerpc/mem: Declare __flush_dcache_icache() static
Christophe Leroy
christophe.leroy at csgroup.eu
Thu Apr 8 03:22:34 AEST 2021
__flush_dcache_icache() is only used in mem.c.
Declare it static.
Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
---
arch/powerpc/include/asm/cacheflush.h | 1 -
arch/powerpc/mm/mem.c | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include/asm/cacheflush.h b/arch/powerpc/include/asm/cacheflush.h
index f63495109f63..9110489ea411 100644
--- a/arch/powerpc/include/asm/cacheflush.h
+++ b/arch/powerpc/include/asm/cacheflush.h
@@ -40,7 +40,6 @@ void flush_icache_user_page(struct vm_area_struct *vma, struct page *page,
#define flush_icache_user_page flush_icache_user_page
void flush_dcache_icache_page(struct page *page);
-void __flush_dcache_icache(void *page);
/**
* flush_dcache_range(): Write any modified data cache blocks out to memory and
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 7a59a5c9aa5d..ce6c81ce4362 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -472,6 +472,8 @@ void flush_dcache_page(struct page *page)
}
EXPORT_SYMBOL(flush_dcache_page);
+static void __flush_dcache_icache(void *p);
+
static void flush_dcache_icache_hugepage(struct page *page)
{
int i;
@@ -522,7 +524,7 @@ EXPORT_SYMBOL(flush_dcache_icache_page);
*
* @page: the address of the page to flush
*/
-void __flush_dcache_icache(void *p)
+static void __flush_dcache_icache(void *p)
{
unsigned long addr = (unsigned long)p;
--
2.25.0
More information about the Linuxppc-dev
mailing list