diff options
author | Guo Ren <ren_guo@c-sky.com> | 2019-04-22 08:21:09 +0200 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-04-22 08:46:23 +0200 |
commit | 1a23710c71bbfe2df10584afb9971b99c45e2576 (patch) | |
tree | 6359f2763eed4ffba01548e80c8cd38ac58dce8d /arch/csky | |
parent | csky: Add support for perf registers sampling (diff) | |
download | linux-1a23710c71bbfe2df10584afb9971b99c45e2576.tar.xz linux-1a23710c71bbfe2df10584afb9971b99c45e2576.zip |
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')
-rw-r--r-- | arch/csky/mm/fault.c | 2 |
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; |