summaryrefslogtreecommitdiffstats
path: root/arch/s390/boot
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2019-08-19 23:14:10 +0200
committerVasily Gorbik <gor@linux.ibm.com>2019-08-26 12:51:18 +0200
commit9b692102d87d13d24c97461207cae259121ed44b (patch)
tree5c7f45a3f1e1548efcfb125c3d6127ee9aa7f484 /arch/s390/boot
parent5f0917a281c66fb310988d4c38f3c55b7023b8ff (diff)
downloadlinux-9b692102d87d13d24c97461207cae259121ed44b.tar.bz2
s390/mem_detect: provide single get_mem_detect_end
get_mem_detect_end is already used in couple of places with potential to be utilized in more cases. Provide single get_mem_detect_end implementation in asm/mem_detect.h to be used by kasan and startup code. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot')
-rw-r--r--arch/s390/boot/mem_detect.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/s390/boot/mem_detect.c b/arch/s390/boot/mem_detect.c
index 5d316fe40480..62e7c13ce85c 100644
--- a/arch/s390/boot/mem_detect.c
+++ b/arch/s390/boot/mem_detect.c
@@ -63,13 +63,6 @@ void add_mem_detect_block(u64 start, u64 end)
mem_detect.count++;
}
-static unsigned long get_mem_detect_end(void)
-{
- if (mem_detect.count)
- return __get_mem_detect_block_ptr(mem_detect.count - 1)->end;
- return 0;
-}
-
static int __diag260(unsigned long rx1, unsigned long rx2)
{
register unsigned long _rx1 asm("2") = rx1;