[RFC PATCH 14/14] fs/proc/vmcore: Remove the unused old interface copy_oldmem_page
Amit Daniel Kachhap
amit.kachhap at arm.com
Fri Dec 3 02:42:31 PST 2021
As all archs have upgraded to use the new interface copy_oldmem_page_buf()
so remove the unused copy_oldmem_page. Also remove the weak definitions.
Cc: Dave Young <dyoung at redhat.com>
Cc: Baoquan He <bhe at redhat.com>
Cc: Vivek Goyal <vgoyal at redhat.com>
Cc: kexec <kexec at lists.infradead.org>
Cc: linux-fsdevel <linux-fsdevel at vger.kernel.org>
Signed-off-by: Amit Daniel Kachhap <amit.kachhap at arm.com>
---
fs/proc/vmcore.c | 14 --------------
include/linux/crash_dump.h | 2 --
2 files changed, 16 deletions(-)
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c
index d01b85c043dd..1edababe4bde 100644
--- a/fs/proc/vmcore.c
+++ b/fs/proc/vmcore.c
@@ -244,20 +244,6 @@ copy_oldmem_page_encrypted(unsigned long pfn, char __user *ubuf, char *kbuf,
return copy_oldmem_page_buf(pfn, ubuf, kbuf, csize, offset);
}
-ssize_t __weak
-copy_oldmem_page_buf(unsigned long pfn, char __user *ubuf, char *kbuf,
- size_t csize, unsigned long offset)
-{
- return -EOPNOTSUPP;
-}
-
-ssize_t __weak
-copy_oldmem_page(unsigned long pfn, char *ubuf, size_t csize,
- unsigned long offset, int userbuf)
-{
- return -EOPNOTSUPP;
-}
-
/*
* Copy to either kernel or user space buffer
*/
diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
index 725c4e053ecf..e897bdc0b7bf 100644
--- a/include/linux/crash_dump.h
+++ b/include/linux/crash_dump.h
@@ -24,8 +24,6 @@ extern int remap_oldmem_pfn_range(struct vm_area_struct *vma,
unsigned long from, unsigned long pfn,
unsigned long size, pgprot_t prot);
-extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
- unsigned long, int);
extern ssize_t copy_oldmem_page_buf(unsigned long pfn, char __user *ubuf,
char *kbuf, size_t csize,
unsigned long offset);
--
2.17.1
More information about the kexec
mailing list