Skip to contentSkip to conversation

MIPS: dec: fix section mismatch

PATCH Applied Thomas Bogendoerfer 2 participants 3 messages Oct 6, 2020 – Oct 14, 2020

Subsystems (2)
lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH 1/1 MIPS: dec: fix section mismatch

Drop inline for memory setup functions and mark them __init to fix section mismatch of pmax_setup_memory_region.

---
 arch/mips/dec/prom/memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/dec/prom/memory.c +2 -2
index 5073d2ed78bb..df8e1af20eb7 100644
@@ -28,7 +28,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];
@@ -58,7 +58,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;
Signature · 1 line
2.16.4
author maintainer Applied
#2 lore raw
In reply to Thomas Bogendoerfer
Quoted 7 lines · Thomas Bogendoerfer

Drop inline for memory setup functions and mark them __init to fix section mismatch of pmax_setup_memory_region.

---
 arch/mips/dec/prom/memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]