hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/mem_encrypt.h
....@@ -47,13 +47,12 @@
4747
4848 void __init mem_encrypt_free_decrypted_mem(void);
4949
50
-/* Architecture __weak replacement functions */
51
-void __init mem_encrypt_init(void);
52
-
5350 void __init sev_es_init_vc_handling(void);
5451 bool sme_active(void);
5552 bool sev_active(void);
5653 bool sev_es_active(void);
54
+
55
+void __init mem_encrypt_init(void);
5756
5857 #define __bss_decrypted __section(".bss..decrypted")
5958
....@@ -86,6 +85,8 @@
8685
8786 static inline void mem_encrypt_free_decrypted_mem(void) { }
8887
88
+static inline void mem_encrypt_init(void) { }
89
+
8990 #define __bss_decrypted
9091
9192 #endif /* CONFIG_AMD_MEM_ENCRYPT */