Skip to content

Commit

Permalink
csky: Fixup compile warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guo Ren committed Apr 22, 2019
1 parent daac95e commit 1a23710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/csky/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1a23710

Please sign in to comment.