Skip to content

Commit 3e4614e

Browse files
committed
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 <[email protected]> Acked-by: Maciej W. Rozycki <[email protected]>
1 parent 3528f8e commit 3e4614e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/dec/prom/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ volatile unsigned long mem_err; /* So we know an error occurred */
2727

2828
#define CHUNK_SIZE 0x400000
2929

30-
static inline void pmax_setup_memory_region(void)
30+
static __init void pmax_setup_memory_region(void)
3131
{
3232
volatile unsigned char *memory_page, dummy;
3333
char old_handler[0x80];
@@ -56,7 +56,7 @@ static inline void pmax_setup_memory_region(void)
5656
* Use the REX prom calls to get hold of the memory bitmap, and thence
5757
* determine memory size.
5858
*/
59-
static inline void rex_setup_memory_region(void)
59+
static __init void rex_setup_memory_region(void)
6060
{
6161
int i, bitmap_size;
6262
unsigned long mem_start = 0, mem_size = 0;

0 commit comments

Comments
 (0)