From 14f3f92bc29fda02c8b7bb20b2d06d26eb0f64fd Mon Sep 17 00:00:00 2001 From: "dongqing.li" Date: Tue, 19 Nov 2024 07:39:16 +0000 Subject: [PATCH] ramdump: fix buildin err for parse info. [1/1] PD#SWPL-191355 Problem: For the low_mem project, the ramdump driver is built-in. If many kernel configs are removed during kernel size trimming, it may lead to build errors in ramdump parsing info. The removed configs info can be found in CL 486868. Solution: Romove parse info of kimage_voffset when ramdump drv is built-in. Verify: sc2 Change-Id: I36b533bd06e56ca66b87850d01c0b0ad57c3a73c Signed-off-by: dongqing.li --- drivers/memory_debug/ramdump/ram_dump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory_debug/ramdump/ram_dump.c b/drivers/memory_debug/ramdump/ram_dump.c index 464ead6ef..e588f23f0 100644 --- a/drivers/memory_debug/ramdump/ram_dump.c +++ b/drivers/memory_debug/ramdump/ram_dump.c @@ -75,12 +75,10 @@ static struct ramdump *ram; static void ramdump_parse_info(void) { -#if !IS_MODULE(CONFIG_AMLOGIC_MEMORY_DEBUG) +#if IS_BUILTIN(CONFIG_AMLOGIC_MEMORY_DEBUG) pr_info("%s, .text : 0x%px - 0x%px, pa(.text): 0x%lx\n", __func__, (unsigned long *)_text, (unsigned long *)_etext, (unsigned long)__pa_symbol(_text)); - pr_info("%s, -m kimage_voffset=0x%px\n", - __func__, (unsigned long)_text - (unsigned long)__pa_symbol(_text)); #endif #ifdef CONFIG_ARM64