diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-08-10 09:40:30 +0200 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2023-08-11 04:12:33 +0200 |
commit | ee12fe28ae0e768af776c8e0247e83e59e5c4525 (patch) | |
tree | 722d15ed00c0326df74650ee41eaba8a2aa09b9e /arch/arc/include | |
parent | csky: pgtable: Invalidate stale I-cache lines in update_mmu_cache (diff) | |
download | linux-ee12fe28ae0e768af776c8e0247e83e59e5c4525.tar.xz linux-ee12fe28ae0e768af776c8e0247e83e59e5c4525.zip |
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 <linus.walleij@linaro.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/page.h b/arch/arc/include/asm/page.h index e43fe27ec54d..02b53ad811fb 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 */ |