mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
daac95e70f
commit
1a23710c71
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
|
||||||
|
|
||||||
unsigned long pgd_base;
|
unsigned long pgd_base;
|
||||||
|
|
||||||
pgd_base = __va(get_pgd());
|
pgd_base = (unsigned long)__va(get_pgd());
|
||||||
pgd = (pgd_t *)pgd_base + offset;
|
pgd = (pgd_t *)pgd_base + offset;
|
||||||
pgd_k = init_mm.pgd + offset;
|
pgd_k = init_mm.pgd + offset;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue