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 <dongqing.li@amlogic.com>
This commit is contained in:
dongqing.li
2024-11-19 07:39:16 +00:00
committed by gerrit autosubmit
parent 181e23f485
commit 14f3f92bc2
+1 -3
View File
@@ -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