projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e93b55b
)
microblaze: Fix cast warning for __va in prom.c
author
Michal Simek
<monstr@monstr.eu>
Thu, 21 May 2009 14:33:07 +0000
(16:33 +0200)
committer
Michal Simek
<monstr@monstr.eu>
Thu, 21 May 2009 14:39:58 +0000
(16:39 +0200)
__va expect 32bit value but of_read_ulong(of_read_number)
returns 64bit value
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/prom.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/microblaze/kernel/prom.c
b/arch/microblaze/kernel/prom.c
index 003d3736062329a337ca0efd77a97ec363d5481c..c005cc6f1aaf7f5703fb58219ddba588dc4127e4 100644
(file)
--- a/
arch/microblaze/kernel/prom.c
+++ b/
arch/microblaze/kernel/prom.c
@@
-509,12
+509,13
@@
static void __init early_init_dt_check_for_initrd(unsigned long node)
prop = of_get_flat_dt_prop(node, "linux,initrd-start", &l);
if (prop) {
- initrd_start = (unsigned long)__va(of_read_ulong(prop, l/4));
+ initrd_start = (unsigned long)
+ __va((u32)of_read_ulong(prop, l/4));
prop = of_get_flat_dt_prop(node, "linux,initrd-end", &l);
if (prop) {
initrd_end = (unsigned long)
- __va(
of_read_ulong(prop, l
/4));
+ __va(
(u32)of_read_ulong(prop, 1
/4));
initrd_below_start_ok = 1;
} else {
initrd_start = 0;