summaryrefslogtreecommitdiff
path: root/arch/csky/mm
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2019-04-22 14:21:09 +0800
committerGuo Ren <ren_guo@c-sky.com>2019-04-22 14:46:23 +0800
commit1a23710c71bbfe2df10584afb9971b99c45e2576 (patch)
tree6359f2763eed4ffba01548e80c8cd38ac58dce8d /arch/csky/mm
parentdaac95e70f482e7add3305ee5e38f00dca505268 (diff)
csky: Fixup compile warning
The function of __va() will return "void *", but the pgd_base is unsigned long. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/mm')
-rw-r--r--arch/csky/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/mm/fault.c b/arch/csky/mm/fault.c
index aeb9a5f11e00..18041f46ded1 100644
--- a/arch/csky/mm/fault.c
+++ b/arch/csky/mm/fault.c
@@ -82,7 +82,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
unsigned long pgd_base;
- pgd_base = __va(get_pgd());
+ pgd_base = (unsigned long)__va(get_pgd());
pgd = (pgd_t *)pgd_base + offset;
pgd_k = init_mm.pgd + offset;