From: Linus Walleij Date: Thu, 10 Aug 2023 07:40:30 +0000 (+0200) Subject: csky: Cast argument to virt_to_pfn() to (void *) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ee12fe28ae0e768af776c8e0247e83e59e5c4525;p=linux.git csky: Cast argument to virt_to_pfn() to (void *) The virt_to_pfn() function takes a (void *) as argument, fix this up to avoid exploiting the unintended polymorphism of virt_to_pfn. Signed-off-by: Linus Walleij Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- diff --git a/arch/arc/include/asm/page.h b/arch/arc/include/asm/page.h index e43fe27ec54d5..02b53ad811fb6 100644 --- a/arch/arc/include/asm/page.h +++ b/arch/arc/include/asm/page.h @@ -108,7 +108,7 @@ extern int pfn_valid(unsigned long pfn); #else /* CONFIG_HIGHMEM */ -#define ARCH_PFN_OFFSET virt_to_pfn(CONFIG_LINUX_RAM_BASE) +#define ARCH_PFN_OFFSET virt_to_pfn((void *)CONFIG_LINUX_RAM_BASE) #endif /* CONFIG_HIGHMEM */