Skip to contentSkip to conversation

ARM: shmobile: rcar-gen2: fix non-SMP build

PATCH In review Arnd Bergmann 3 participants 5 messages Oct 5, 2017 – Oct 6, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: shmobile: rcar-gen2: fix non-SMP build

A bugfix for the SMP case broke the build for the UP case:

arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
(.text+0x34): undefined reference to `secondary_startup'

The assembler file mixes code that is used for SMP with code that we also need on a single-CPU build, so I'm leaving it always enabled in the Makefile, but enclose the SMP code in an #ifdef.

3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")

---
 arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-shmobile/headsmp-apmu.S +2 -0
index db4743d2bf91..5672b5849401 100644
@@ -31,7 +31,9 @@ ENTRY(shmobile_init_cntvoff)
 	ret	lr
 ENDPROC(shmobile_init_cntvoff)
 
+#ifdef CONFIG_SMP
 ENTRY(shmobile_boot_apmu)
 	bl	shmobile_init_cntvoff
 	b	secondary_startup
 ENDPROC(shmobile_boot_apmu)
+#endif
Signature · 1 line
2.9.0
Acked-by Acked-by on v1 1/1
#1 lore raw

Hi Arnd,

Quoted 9 lines · Arnd Bergmann

A bugfix for the SMP case broke the build for the UP case:

arch/arm/mach-shmobile/headsmp-apmu.o: In function `shmobile_boot_apmu':
(.text+0x34): undefined reference to `secondary_startup'

The assembler file mixes code that is used for SMP with code that we also need on a single-CPU build, so I'm leaving it always enabled in the Makefile, but enclose the SMP code in an #ifdef.

Oops, sorry for that. Looks like 0-day doesn't do UP builds?

Quoted 2 lines

3fd45a136ff6 ("ARM: shmobile: rcar-gen2: Make sure CNTVOFF is initialized on CA7/15")

Quoted 1 line

arch/arm/mach-shmobile/headsmp-apmu.S

Quoted 8 lines
---
 arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-shmobile/headsmp-apmu.S +0 -0
index db4743d2bf91..5672b5849401 100644

As this hasn't been pulled into arm-soc yet (pull request sent though), perhaps Simon should squash this fix into the original commit? Should we rename headsmp-apmu.S to head-apmu.S?

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Arnd Bergmann
 arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
 1 file changed, 2 insertions(+)
Quoted 8 lines

arch/arm/mach-shmobile/headsmp-apmu.S

Quoted 4 lines
arch/arm/mach-shmobile/headsmp-apmu.S +0 -0
index db4743d2bf91..5672b5849401 100644

As this hasn't been pulled into arm-soc yet (pull request sent though), perhaps Simon should squash this fix into the original commit? Should we rename headsmp-apmu.S to head-apmu.S?

I'm fine with it either way, just do whatever works best for you here.

Arnd

#3 lore raw
Quoted 14 lines · Arnd Bergmann
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Arnd Bergmann
 arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
 1 file changed, 2 insertions(+)
Quoted 8 lines

arch/arm/mach-shmobile/headsmp-apmu.S

Quoted 4 lines
arch/arm/mach-shmobile/headsmp-apmu.S +0 -0
index db4743d2bf91..5672b5849401 100644

As this hasn't been pulled into arm-soc yet (pull request sent though), perhaps Simon should squash this fix into the original commit? Should we rename headsmp-apmu.S to head-apmu.S?

Quoted 1 line

I'm fine with it either way, just do whatever works best for you here.

My preference is to send a second pull request with this patch on top of the previous pull request. Arnd does that work for you?

#4 lore raw
Quoted 15 lines · Simon Horman
Quoted 14 lines · Arnd Bergmann
Quoted 12 lines · Geert Uytterhoeven

arch/arm/mach-shmobile/headsmp-apmu.S

Quoted 7 lines · Arnd Bergmann
 arch/arm/mach-shmobile/headsmp-apmu.S | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-shmobile/headsmp-apmu.S +0 -0
index db4743d2bf91..5672b5849401 100644

As this hasn't been pulled into arm-soc yet (pull request sent though), perhaps Simon should squash this fix into the original commit? Should we rename headsmp-apmu.S to head-apmu.S?

Quoted 4 lines
Quoted 1 line

I'm fine with it either way, just do whatever works best for you here.

My preference is to send a second pull request with this patch on top of the previous pull request. Arnd does that work for you?

In the mean time I pushed the patch to the next branch of the renesas tree so it should appear in linux-next in the not to distant future.