[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211203104231.17597-15-amit.kachhap@arm.com>
Date: Fri, 3 Dec 2021 16:12:31 +0530
From: Amit Daniel Kachhap <amit.kachhap@....com>
To: linux-kernel@...r.kernel.org
Cc: Christoph Hellwig <hch@....de>,
Vincenzo Frascino <Vincenzo.Frascino@....com>,
Kevin Brodsky <kevin.brodsky@....com>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
kexec <kexec@...ts.infradead.org>,
Amit Daniel Kachhap <amit.kachhap@....com>,
Dave Young <dyoung@...hat.com>, Baoquan He <bhe@...hat.com>,
Vivek Goyal <vgoyal@...hat.com>
Subject: [RFC PATCH 14/14] fs/proc/vmcore: Remove the unused old interface copy_oldmem_page
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@...hat.com>
Cc: Baoquan He <bhe@...hat.com>
Cc: Vivek Goyal <vgoyal@...hat.com>
Cc: kexec <kexec@...ts.infradead.org>
Cc: linux-fsdevel <linux-fsdevel@...r.kernel.org>
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@....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
Powered by blists - more mailing lists