Skip to content

Commit a2fa4ce

Browse files
Yanteng Sitsbogend
authored andcommitted
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>
1 parent fceb90b commit a2fa4ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/mips/include/asm/pgtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ struct vm_area_struct;
6464
#define __S111 __pgprot(0)
6565

6666
extern unsigned long _page_cachable_default;
67+
extern void __update_cache(unsigned long address, pte_t pte);
6768

6869
/*
6970
* ZERO_PAGE is a global shared page that is always zero; used
@@ -224,7 +225,6 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt
224225
static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
225226
pte_t *ptep, pte_t pteval)
226227
{
227-
extern void __update_cache(unsigned long address, pte_t pte);
228228

229229
if (!pte_present(pteval))
230230
goto cache_sync_done;

arch/mips/mm/cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <asm/cpu.h>
2222
#include <asm/cpu-features.h>
2323
#include <asm/setup.h>
24+
#include <asm/pgtable.h>
2425

2526
/* Cache operations. */
2627
void (*flush_cache_all)(void);

0 commit comments

Comments
 (0)