Skip to content

Commit

Permalink
MIPS: mm: Add prototype for function __update_cache
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yanteng Si authored and Thomas Bogendoerfer committed Jan 22, 2021
1 parent fceb90b commit a2fa4ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ struct vm_area_struct;
#define __S111 __pgprot(0)

extern unsigned long _page_cachable_default;
extern void __update_cache(unsigned long address, pte_t pte);

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

if (!pte_present(pteval))
goto cache_sync_done;
Expand Down
1 change: 1 addition & 0 deletions arch/mips/mm/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/setup.h>
#include <asm/pgtable.h>

/* Cache operations. */
void (*flush_cache_all)(void);
Expand Down

0 comments on commit a2fa4ce

Please sign in to comment.