diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 42c32d06f7da24aab86595efb8187d6923c98209..91ae16fbd7d591c3bf10e7d40d16a506d60bdff9 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -187,6 +187,16 @@ int __weak remap_oldmem_pfn_range(struct vm_area_struct *vma, return remap_pfn_range(vma, from, pfn, size, prot); } +/* + * Architectures which support memory encryption override this. + */ +ssize_t __weak +copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize, + unsigned long offset, int userbuf) +{ + return copy_oldmem_page(pfn, buf, csize, offset, userbuf); +} + /* * Copy to either kernel or user space */