linux-mips
[Top] [All Lists]

Re: [MIPS] Implement flush_anon_page().

To: linux-mips@linux-mips.org
Subject: Re: [MIPS] Implement flush_anon_page().
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sun, 25 Mar 2007 00:14:33 +0900 (JST)
Cc: ralf@linux-mips.org
In-reply-to: <S20022532AbXCWXgp/20070323233645Z+1432@ftp.linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <S20022532AbXCWXgp/20070323233645Z+1432@ftp.linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
Move an external declaration of __flush_anon_page() to toplevel to
avoid this sparse warning:

linux/arch/mips/mm/cache.c:92:6: warning: symbol '__flush_anon_page' was not 
declared. Should it be static?

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/include/asm-mips/cacheflush.h b/include/asm-mips/cacheflush.h
index 78a624d..28d907d 100644
--- a/include/asm-mips/cacheflush.h
+++ b/include/asm-mips/cacheflush.h
@@ -49,11 +49,10 @@ static inline void flush_dcache_page(str
 #define flush_dcache_mmap_unlock(mapping)      do { } while (0)
 
 #define ARCH_HAS_FLUSH_ANON_PAGE
+extern void __flush_anon_page(struct page *, unsigned long);
 static inline void flush_anon_page(struct vm_area_struct *vma,
        struct page *page, unsigned long vmaddr)
 {
-       extern void __flush_anon_page(struct page *, unsigned long);
-
        if (cpu_has_dc_aliases && PageAnon(page))
                __flush_anon_page(page, vmaddr);
 }

<Prev in Thread] Current Thread [Next in Thread>