Skip to content

Commit

Permalink
[MIPS] Add missing prototypes to asm/page.h
Browse files Browse the repository at this point in the history
This patch fixes the following sparse warnings:

>>>>>>>>>>>>>>>>>>
arch/mips/mm/page.c:284:16: warning: symbol
'build_clear_page' was not declared. Should it be static?

arch/mips/mm/page.c:426:16: warning: symbol 'build_copy_page'
was not declared. Should it be static?
>>>>>>>>>>>>>>>>>>

The fix is to add appropriate prototypes to the header
include/asm-mips/page.h.

Build-tested against Malta defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Jul 20, 2008
1 parent f028b86 commit c29d150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/asm-mips/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#include <linux/pfn.h>
#include <asm/io.h>

extern void build_clear_page(void);
extern void build_copy_page(void);

/*
* It's normally defined only for FLATMEM config but it's
* used in our early mem init code for all memory models.
Expand Down

0 comments on commit c29d150

Please sign in to comment.