All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: bcm283x undefined reference to "print_cpuinfo"
@ 2023-08-03 13:39 Naveen Kumar Chaudhary
  2023-08-18 17:49 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Naveen Kumar Chaudhary @ 2023-08-03 13:39 UTC (permalink / raw)
  To: u-boot; +Cc: mbrugger, pbrobinson, Naveen Kumar Chaudhary

Builds for Raspberry Pi targets fail when CONFIG_DISPLAY_CPUINFO is
enabled and following error can be seen -
common/board_f.o:(.rodata.init_sequence_f+0x90):
    undefined reference to `print_cpuinfo'

Added implementation of function "print_cpuinfo"

Signed-off-by: Naveen Kumar Chaudhary <naveenchaudhary2010@hotmail.com>
---
 arch/arm/mach-bcm283x/init.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c
index 183650a90a..7265faf6ce 100644
--- a/arch/arm/mach-bcm283x/init.c
+++ b/arch/arm/mach-bcm283x/init.c
@@ -146,6 +146,14 @@ int mach_cpu_init(void)
 	return 0;
 }
 
+#if defined(CONFIG_DISPLAY_CPUINFO)
+int print_cpuinfo(void)
+{
+	printf("CPU: BCM283x\n");
+	return 0;
+}
+#endif
+
 #ifdef CONFIG_ARMV7_LPAE
 #ifdef CONFIG_TARGET_RPI_4_32B
 #define BCM2711_RPI4_PCIE_XHCI_MMIO_VIRT	0xffc00000UL
-- 
2.25.1


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

* Re: [PATCH] arm: bcm283x undefined reference to "print_cpuinfo"
  2023-08-03 13:39 [PATCH] arm: bcm283x undefined reference to "print_cpuinfo" Naveen Kumar Chaudhary
@ 2023-08-18 17:49 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2023-08-18 17:49 UTC (permalink / raw)
  To: Naveen Kumar Chaudhary; +Cc: u-boot, mbrugger, pbrobinson

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

On Thu, Aug 03, 2023 at 07:09:35PM +0530, Naveen Kumar Chaudhary wrote:

> Builds for Raspberry Pi targets fail when CONFIG_DISPLAY_CPUINFO is
> enabled and following error can be seen -
> common/board_f.o:(.rodata.init_sequence_f+0x90):
>     undefined reference to `print_cpuinfo'
> 
> Added implementation of function "print_cpuinfo"
> 
> Signed-off-by: Naveen Kumar Chaudhary <naveenchaudhary2010@hotmail.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2023-08-18 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-03 13:39 [PATCH] arm: bcm283x undefined reference to "print_cpuinfo" Naveen Kumar Chaudhary
2023-08-18 17:49 ` Tom Rini

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.