diff options
author | Heiko Carstens <[email protected]> | 2021-12-07 19:19:48 +0100 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2021-12-10 16:14:25 +0100 |
commit | 9d6305c2a116f4ea3160730df8cf83d13d629b87 (patch) | |
tree | 687ca1d9e31dfbb8d25a62c8d5a2c063b4eda677 | |
parent | d2f2949ab6b60fc53134908d0ffc140ef50e5a1b (diff) |
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 <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
-rw-r--r-- | arch/s390/include/asm/diag.h | 4 |
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( |