hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/mem_encrypt.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * AMD Memory Encryption Support
34 *
45 * Copyright (C) 2016 Advanced Micro Devices, Inc.
56 *
67 * Author: Tom Lendacky <thomas.lendacky@amd.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #ifndef __MEM_ENCRYPT_H__
....@@ -21,22 +18,9 @@
2118
2219 #else /* !CONFIG_ARCH_HAS_MEM_ENCRYPT */
2320
24
-#define sme_me_mask 0ULL
25
-
26
-static inline bool sme_active(void) { return false; }
27
-static inline bool sev_active(void) { return false; }
21
+static inline bool mem_encrypt_active(void) { return false; }
2822
2923 #endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */
30
-
31
-static inline bool mem_encrypt_active(void)
32
-{
33
- return sme_me_mask;
34
-}
35
-
36
-static inline u64 sme_get_me_mask(void)
37
-{
38
- return sme_me_mask;
39
-}
4024
4125 #ifdef CONFIG_AMD_MEM_ENCRYPT
4226 /*