ANDROID: debug_kinfo: fix build issue due to module_alloc_base change

In commit 3e35d303ab ("arm64: module: rework module VA range
selection"), the module_alloc_base variable is changed to
static module_direct_base and module_plt_base.

Remove those fiedls from debug_kinfo structure to fix build error.
common/drivers/android/debug_kinfo.c:165:26: error: use of undeclared identifier 'module_alloc_base'
        info->module_start_va = module_alloc_base;
                                ^

Bug: 317938461
Change-Id: I817d5a30ed3e6be3b1e4998541d4a46a4bbd7dd4
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
This commit is contained in:
Kuan-Ying Lee
2023-12-28 17:21:25 +08:00
committed by Treehugger Robot
parent 4df28ddcd9
commit b8d72cb07e
2 changed files with 1 additions and 12 deletions
+1 -10
View File
@@ -161,16 +161,7 @@ static int debug_kinfo_probe(struct platform_device *pdev)
strlcpy(info->last_uts_release, init_utsname()->release, sizeof(info->last_uts_release));
info->enabled_modules_tree_lookup = IS_ENABLED(CONFIG_MODULES_TREE_LOOKUP);
info->mod_kallsyms_offset = offsetof(struct module, kallsyms);
#if defined(CONFIG_RANDOMIZE_BASE) && defined(MODULES_VSIZE)
info->module_start_va = module_alloc_base;
info->module_end_va = info->module_start_va + MODULES_VSIZE;
#elif defined(CONFIG_MODULES) && defined(MODULES_VADDR)
info->module_start_va = MODULES_VADDR;
info->module_end_va = MODULES_END;
#else
info->module_start_va = VMALLOC_START;
info->module_end_va = VMALLOC_END;
#endif
update_kernel_all_info(all_info);
return 0;
-2
View File
@@ -56,8 +56,6 @@ struct kernel_info {
/* For module kallsyms */
__u32 enabled_modules_tree_lookup;
__u32 mod_kallsyms_offset;
__u64 module_start_va;
__u64 module_end_va;
} __packed;
struct kernel_all_info {