projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daac95e
)
csky: Fixup compile warning
author
Guo Ren
<ren_guo@c-sky.com>
Mon, 22 Apr 2019 06:21:09 +0000
(14:21 +0800)
committer
Guo Ren
<ren_guo@c-sky.com>
Mon, 22 Apr 2019 06:46:23 +0000
(14:46 +0800)
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>
arch/csky/mm/fault.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/csky/mm/fault.c
b/arch/csky/mm/fault.c
index aeb9a5f11e00a31238ce2d71c95d300dcb72481b..18041f46ded11df26ad5dec41c4bc68363b3bafc 100644
(file)
--- 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;