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@xxxxxxxxxx> Cc: Baoquan He <bhe@xxxxxxxxxx> Cc: Vivek Goyal <vgoyal@xxxxxxxxxx> Cc: kexec <kexec@xxxxxxxxxxxxxxxxxxx> Cc: linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx> Signed-off-by: Amit Daniel Kachhap <amit.kachhap@xxxxxxx> --- 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