Linux-MIPS Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] MIPS: dec: fix section mismatch
@ 2020-10-06 14:00 Thomas Bogendoerfer
  2020-10-14 12:43 ` Maciej W. Rozycki
  2020-10-14 22:08 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2020-10-06 14:00 UTC (permalink / raw)
  To: Maciej W. Rozycki, linux-mips, linux-kernel

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>
---
 arch/mips/dec/prom/memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/dec/prom/memory.c b/arch/mips/dec/prom/memory.c
index 5073d2ed78bb..df8e1af20eb7 100644
--- a/arch/mips/dec/prom/memory.c
+++ b/arch/mips/dec/prom/memory.c
@@ -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;
-- 
2.16.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] MIPS: dec: fix section mismatch
  2020-10-06 14:00 [PATCH] MIPS: dec: fix section mismatch Thomas Bogendoerfer
@ 2020-10-14 12:43 ` Maciej W. Rozycki
  2020-10-14 22:08 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2020-10-14 12:43 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: linux-mips, linux-kernel

On Tue, 6 Oct 2020, Thomas Bogendoerfer wrote:

> 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>

  Maciej

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] MIPS: dec: fix section mismatch
  2020-10-06 14:00 [PATCH] MIPS: dec: fix section mismatch Thomas Bogendoerfer
  2020-10-14 12:43 ` Maciej W. Rozycki
@ 2020-10-14 22:08 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2020-10-14 22:08 UTC (permalink / raw)
  To: Maciej W. Rozycki, linux-mips, linux-kernel

On Tue, Oct 06, 2020 at 04:00:03PM +0200, Thomas Bogendoerfer wrote:
> 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>
> ---
>  arch/mips/dec/prom/memory.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied to mips-next.

Thomas.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 14:00 [PATCH] MIPS: dec: fix section mismatch Thomas Bogendoerfer
2020-10-14 12:43 ` Maciej W. Rozycki
2020-10-14 22:08 ` Thomas Bogendoerfer

Linux-MIPS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mips/0 linux-mips/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mips linux-mips/ https://lore.kernel.org/linux-mips \
		linux-mips@vger.kernel.org
	public-inbox-index linux-mips

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-mips


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git