Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: mm: Add prototype for function __update_cache

This commit adds a prototype to fix error at W=1:

arch/mips/mm/cache.c:129:6: error: no previous prototype
for '__update_cache' [-Werror=missing-prototypes]

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Yanteng Si and committed by
Thomas Bogendoerfer
a2fa4ced fceb90bb

+2 -1
+1 -1
arch/mips/include/asm/pgtable.h
··· 64 64 #define __S111 __pgprot(0) 65 65 66 66 extern unsigned long _page_cachable_default; 67 + extern void __update_cache(unsigned long address, pte_t pte); 67 68 68 69 /* 69 70 * ZERO_PAGE is a global shared page that is always zero; used ··· 225 224 static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, 226 225 pte_t *ptep, pte_t pteval) 227 226 { 228 - extern void __update_cache(unsigned long address, pte_t pte); 229 227 230 228 if (!pte_present(pteval)) 231 229 goto cache_sync_done;
+1
arch/mips/mm/cache.c
··· 21 21 #include <asm/cpu.h> 22 22 #include <asm/cpu-features.h> 23 23 #include <asm/setup.h> 24 + #include <asm/pgtable.h> 24 25 25 26 /* Cache operations. */ 26 27 void (*flush_cache_all)(void);