projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b8976
)
proc/vmcore: Fix i386 build error of missing copy_oldmem_page_encrypted()
author
Borislav Petkov
<bp@suse.de>
Mon, 8 Oct 2018 08:05:20 +0000
(10:05 +0200)
committer
Borislav Petkov
<bp@suse.de>
Tue, 9 Oct 2018 09:57:28 +0000
(11:57 +0200)
Lianbo reported a build error with a particular 32-bit config, see Link
below for details.
Provide a weak copy_oldmem_page_encrypted() function which architectures
can override, in the same manner other functionality in that file is
supplied.
Reported-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
CC: x86@kernel.org
Link:
http://lkml.kernel.org/r/710b9d95-2f70-eadf-c4a1-c3dc80ee4ebb@redhat.com
fs/proc/vmcore.c
patch
|
blob
|
history
diff --git
a/fs/proc/vmcore.c
b/fs/proc/vmcore.c
index 42c32d06f7da24aab86595efb8187d6923c98209..91ae16fbd7d591c3bf10e7d40d16a506d60bdff9 100644
(file)
--- 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
*/