summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-10-06 16:00:03 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-10-14 23:54:28 +0200
commit3e4614e7fddec8a8bafd387ca93bd368e64cae9a (patch)
treeb5dcd3a3d23447c9eac5acc72549cd19a57815ba /arch/mips
parent3528f8ec95a5b1ee1b98d3e85371843c6428e4be (diff)
downloadlinux-3e4614e7fddec8a8bafd387ca93bd368e64cae9a.tar.gz
linux-3e4614e7fddec8a8bafd387ca93bd368e64cae9a.tar.bz2
linux-3e4614e7fddec8a8bafd387ca93bd368e64cae9a.zip
MIPS: dec: fix section mismatch
Drop inline for memory setup functions and mark them __init to fix section mismatch of pmax_setup_memory_region. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Acked-by: Maciej W. Rozycki <macro@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/dec/prom/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/dec/prom/memory.c b/arch/mips/dec/prom/memory.c
index 288772c3eb0c..44490c30d63b 100644
--- a/arch/mips/dec/prom/memory.c
+++ b/arch/mips/dec/prom/memory.c
@@ -27,7 +27,7 @@ volatile unsigned long mem_err; /* So we know an error occurred */
#define CHUNK_SIZE 0x400000
-static inline void pmax_setup_memory_region(void)
+static __init void pmax_setup_memory_region(void)
{
volatile unsigned char *memory_page, dummy;
char old_handler[0x80];
@@ -56,7 +56,7 @@ static inline void pmax_setup_memory_region(void)
* Use the REX prom calls to get hold of the memory bitmap, and thence
* determine memory size.
*/
-static inline void rex_setup_memory_region(void)
+static __init void rex_setup_memory_region(void)
{
int i, bitmap_size;
unsigned long mem_start = 0, mem_size = 0;