From: Vasily Gorbik Date: Fri, 17 Nov 2017 10:21:49 +0000 (+0100) Subject: s390/mm: add missing pfn_to_kaddr helper X-Git-Tag: v5.15~7800^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75f195420a987490d3ce79db2d06c70fbfce4ac4;p=platform%2Fkernel%2Flinux-starfive.git s390/mm: add missing pfn_to_kaddr helper kasan common code uses pfn_to_kaddr, which is defined by many other architectures. Adding it as well to avoid a build error. Reviewed-by: Martin Schwidefsky Signed-off-by: Vasily Gorbik Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index 41e3908..a4d3809 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h @@ -161,6 +161,7 @@ static inline int devmem_is_allowed(unsigned long pfn) #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) +#define pfn_to_kaddr(pfn) pfn_to_virt(pfn) #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) #define page_to_virt(page) pfn_to_virt(page_to_pfn(page))