diff options
Diffstat (limited to 'include/linux/set_memory.h')
| -rw-r--r-- | include/linux/set_memory.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/set_memory.h b/include/linux/set_memory.h index da5178216da5..2a986d282a97 100644 --- a/include/linux/set_memory.h +++ b/include/linux/set_memory.h | |||
| @@ -17,6 +17,20 @@ static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } | |||
| 17 | static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } | 17 | static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } |
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
| 20 | #ifndef set_mce_nospec | ||
| 21 | static inline int set_mce_nospec(unsigned long pfn) | ||
| 22 | { | ||
| 23 | return 0; | ||
| 24 | } | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #ifndef clear_mce_nospec | ||
| 28 | static inline int clear_mce_nospec(unsigned long pfn) | ||
| 29 | { | ||
| 30 | return 0; | ||
| 31 | } | ||
| 32 | #endif | ||
| 33 | |||
| 20 | #ifndef CONFIG_ARCH_HAS_MEM_ENCRYPT | 34 | #ifndef CONFIG_ARCH_HAS_MEM_ENCRYPT |
| 21 | static inline int set_memory_encrypted(unsigned long addr, int numpages) | 35 | static inline int set_memory_encrypted(unsigned long addr, int numpages) |
| 22 | { | 36 | { |
