* [PATCH] powerpc/47x: Add prototype for mmu_init_secondary()
@ 2023-08-17 14:25 Christophe Leroy
2023-08-23 11:55 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Christophe Leroy @ 2023-08-17 14:25 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin
Cc: Arnd Bergmann, linuxppc-dev, linux-kernel
A W=1 build of 44x/iss476-smp_defconfig gives:
arch/powerpc/mm/nohash/44x.c:220:13: error: no previous prototype for 'mmu_init_secondary' [-Werror=missing-prototypes]
220 | void __init mmu_init_secondary(int cpu)
| ^~~~~~~~~~~~~~~~~~
That function is called from head_4xx.S
Add a prototype in mmu_decl.h
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Arnd Bergmann <arnd@arndb.de>
---
arch/powerpc/mm/mmu_decl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h
index c6dccb4f06dc..7f9ff0640124 100644
--- a/arch/powerpc/mm/mmu_decl.h
+++ b/arch/powerpc/mm/mmu_decl.h
@@ -110,6 +110,7 @@ extern void MMU_init_hw(void);
void MMU_init_hw_patch(void);
unsigned long mmu_mapin_ram(unsigned long base, unsigned long top);
#endif
+void mmu_init_secondary(int cpu);
#ifdef CONFIG_PPC_E500
extern unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx,
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/47x: Add prototype for mmu_init_secondary()
2023-08-17 14:25 [PATCH] powerpc/47x: Add prototype for mmu_init_secondary() Christophe Leroy
@ 2023-08-23 11:55 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2023-08-23 11:55 UTC (permalink / raw)
To: Nicholas Piggin, Christophe Leroy
Cc: linuxppc-dev, linux-kernel, Arnd Bergmann
On Thu, 17 Aug 2023 16:25:49 +0200, Christophe Leroy wrote:
> A W=1 build of 44x/iss476-smp_defconfig gives:
>
> arch/powerpc/mm/nohash/44x.c:220:13: error: no previous prototype for 'mmu_init_secondary' [-Werror=missing-prototypes]
> 220 | void __init mmu_init_secondary(int cpu)
> | ^~~~~~~~~~~~~~~~~~
>
> That function is called from head_4xx.S
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/47x: Add prototype for mmu_init_secondary()
https://git.kernel.org/powerpc/c/b27c1a0a4e62af1fd9d2688bf8156a5d546e4227
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-23 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 14:25 [PATCH] powerpc/47x: Add prototype for mmu_init_secondary() Christophe Leroy
2023-08-23 11:55 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).