aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/set_memory.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/set_memory.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
Diffstat (limited to 'include/linux/set_memory.h')
-rw-r--r--include/linux/set_memory.h14
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; }
17static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } 17static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }
18#endif 18#endif
19 19
20#ifndef set_mce_nospec
21static inline int set_mce_nospec(unsigned long pfn)
22{
23 return 0;
24}
25#endif
26
27#ifndef clear_mce_nospec
28static 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
21static inline int set_memory_encrypted(unsigned long addr, int numpages) 35static inline int set_memory_encrypted(unsigned long addr, int numpages)
22{ 36{