aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-12-07 19:19:48 +0100
committerHeiko Carstens <hca@linux.ibm.com>2021-12-10 16:14:25 +0100
commit9d6305c2a116f4ea3160730df8cf83d13d629b87 (patch)
tree687ca1d9e31dfbb8d25a62c8d5a2c063b4eda677 /arch/s390/include/asm
parents390/mm: add missing phys_to_virt translation to page table dumper (diff)
downloadlinux-dev-9d6305c2a116f4ea3160730df8cf83d13d629b87.tar.xz
linux-dev-9d6305c2a116f4ea3160730df8cf83d13d629b87.zip
s390/diag: use pfn_to_phys() instead of open coding
Use pfn_to_phys() instead of open coding to make it clear what the code is doing. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/diag.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/diag.h b/arch/s390/include/asm/diag.h
index b3a8cb4daed6..bdcd64f0c1d7 100644
--- a/arch/s390/include/asm/diag.h
+++ b/arch/s390/include/asm/diag.h
@@ -47,8 +47,8 @@ static inline void diag10_range(unsigned long start_pfn, unsigned long num_pfn)
{
unsigned long start_addr, end_addr;
- start_addr = start_pfn << PAGE_SHIFT;
- end_addr = (start_pfn + num_pfn - 1) << PAGE_SHIFT;
+ start_addr = pfn_to_phys(start_pfn);
+ end_addr = pfn_to_phys(start_pfn + num_pfn - 1);
diag_stat_inc(DIAG_STAT_X010);
asm volatile(