Skip to content

Commit

Permalink
MIPS: dec: fix section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Bogendoerfer committed Oct 14, 2020
1 parent 3528f8e commit 3e4614e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/dec/prom/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3e4614e

Please sign in to comment.