ANDROID: arm64: hibernate: Fix compile error while disabling CONFIG_ANDROID_VENDOR_OEM_DATA

Bug: 410768225
Fixes: 4f8ffa0f05 ("ANDROID: vendor hooks: Add hooks to support bootloader based hibernation")
Change-Id: I613ca9c7938b2a6c31ca36f3fa8a5c2befbe4e70
Signed-off-by: joe.liu <joe.liu@mediatek.com>
This commit is contained in:
joe.liu
2025-04-15 17:55:55 +08:00
committed by Treehugger Robot
parent 83e4666547
commit f5cc702b4f
+2
View File
@@ -119,8 +119,10 @@ int arch_hibernation_header_save(void *addr, unsigned int max_size)
hdr->ttbr1_el1 = __pa_symbol(swapper_pg_dir);
hdr->reenter_kernel = _cpu_resume;
#ifdef CONFIG_ANDROID_VENDOR_OEM_DATA
trace_android_vh_save_cpu_resume(&hdr->android_vendor_data1,
__pa(cpu_resume));
#endif
/* We can't use __hyp_get_vectors() because kvm may still be loaded */
if (el2_reset_needed())