All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Adds __init annotation at mmu_init_secondary func
@ 2018-07-26 12:52 Alexey Spirkov
  2018-07-27 10:47 ` Michael Ellerman
  2018-08-01  5:24 ` Michael Ellerman
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Spirkov @ 2018-07-26 12:52 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman, linuxppc-dev
  Cc: trivial, andrew

mmu_init_secondary function called at initialization sequence
but it misses __init annotation. As result modpost warning is generated.
Some building systems sensitive to such kind of warnings.

Signed-off-by: Alexey Spirkov <alexeis@astrosoft.ru>
---
 arch/powerpc/mm/44x_mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/44x_mmu.c b/arch/powerpc/mm/44x_mmu.c
index 82b1ff7..12d9251 100644
--- a/arch/powerpc/mm/44x_mmu.c
+++ b/arch/powerpc/mm/44x_mmu.c
@@ -229,7 +229,7 @@ void setup_initial_memory_limit(phys_addr_t first_membl=
ock_base,
 }
=20
 #ifdef CONFIG_SMP
-void mmu_init_secondary(int cpu)
+void __init mmu_init_secondary(int cpu)
 {
 	unsigned long addr;
 	unsigned long memstart =3D memstart_addr & ~(PPC_PIN_SIZE - 1);
--=20
2.9.5

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

end of thread, other threads:[~2018-08-01  5:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 12:52 [PATCH] Adds __init annotation at mmu_init_secondary func Alexey Spirkov
2018-07-27 10:47 ` Michael Ellerman
2018-07-27 10:57   ` Alexey Spirkov
2018-07-30  6:57     ` Michael Ellerman
2018-08-01  5:24 ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.