summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/maccess.h
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@linux.ibm.com>2022-09-08 15:23:02 +0300
committerVasily Gorbik <gor@linux.ibm.com>2022-09-14 17:46:01 +0300
commitfba07cd4dd8fb4833015801a83f945b2d65a5c4b (patch)
tree08701a6de4af267d6e035ce3101cca9da8b7569a /arch/s390/include/asm/maccess.h
parentc0ceb94403880840effeb1990a19357a1232578f (diff)
downloadlinux-fba07cd4dd8fb4833015801a83f945b2d65a5c4b.tar.xz
s390/mm: uninline copy_oldmem_kernel() function
Uninline copy_oldmem_kernel() function and make it consistent with a very similar memcpy_real() implementation, by moving to code to crash_dump.c, where it actually belongs. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/maccess.h')
-rw-r--r--arch/s390/include/asm/maccess.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/maccess.h b/arch/s390/include/asm/maccess.h
index 21ebd9bf34cc..c7fa838cf6b9 100644
--- a/arch/s390/include/asm/maccess.h
+++ b/arch/s390/include/asm/maccess.h
@@ -10,5 +10,8 @@ extern unsigned long __memcpy_real_area;
void memcpy_real_init(void);
size_t memcpy_real_iter(struct iov_iter *iter, unsigned long src, size_t count);
int memcpy_real(void *dest, unsigned long src, size_t count);
+#ifdef CONFIG_CRASH_DUMP
+int copy_oldmem_kernel(void *dst, unsigned long src, size_t count);
+#endif
#endif /* __ASM_S390_MACCESS_H */