projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1362d15
)
csky: Cast argument to virt_to_pfn() to (void *)
author
Linus Walleij
<linus.walleij@linaro.org>
Thu, 10 Aug 2023 07:40:30 +0000
(09:40 +0200)
committer
Guo Ren
<guoren@linux.alibaba.com>
Fri, 11 Aug 2023 02:12:33 +0000
(22:12 -0400)
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>
arch/arc/include/asm/page.h
patch
|
blob
|
history
diff --git
a/arch/arc/include/asm/page.h
b/arch/arc/include/asm/page.h
index e43fe27ec54d5be0c177569a08672fac10b53e25..02b53ad811fb607951bf941a264864e347665253 100644
(file)
--- 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 */