From 40f57b571c1895fa077be922e2cd1345b27efe2d Mon Sep 17 00:00:00 2001 From: Mikhail Kshevetskiy Date: Wed, 8 Oct 2025 10:09:02 +0300 Subject: arm/airoha: an7581 ignores CFG_MAX_MEM_MAPPED value This partly fix commit 726404a66c773 ("airoha: rework RAM size handling to support multiple RAM size") The function get_effective_memsize() do not see non-global defines of CFG_MAX_MEM_MAPPED, so the effective memory size will not be changed. Fix the issue by putting definition of CFG_MAX_MEM_MAPPED to the proper place. Fixes: 726404a66c773 ("airoha: rework RAM size handling to support multiple RAM size") Signed-off-by: Mikhail Kshevetskiy --- arch/arm/mach-airoha/an7581/init.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch') diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c index 11992027d92..be0ccadf7da 100644 --- a/arch/arm/mach-airoha/an7581/init.c +++ b/arch/arm/mach-airoha/an7581/init.c @@ -8,8 +8,6 @@ #include #include -#define CFG_MAX_MEM_MAPPED SZ_2G - DECLARE_GLOBAL_DATA_PTR; int print_cpuinfo(void) -- cgit v1.3.1