26 lines
803 B
Plaintext
26 lines
803 B
Plaintext
|
From: Jeff Mahoney <jeffm@suse.com>
|
||
|
Subject: ia64/mca: Fix cast from integer to pointer warning
|
||
|
Patch-mainline: not yet
|
||
|
|
||
|
__get_free_pages() returns an unsigned long that is the address of the
|
||
|
pages returned. ia64_mca_cpu_init wants to use it as a data pointer, so
|
||
|
we cast it as void *.
|
||
|
|
||
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
---
|
||
|
arch/ia64/kernel/mca.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- a/arch/ia64/kernel/mca.c
|
||
|
+++ b/arch/ia64/kernel/mca.c
|
||
|
@@ -1858,7 +1858,8 @@ ia64_mca_cpu_init(void *cpu_data)
|
||
|
data = mca_bootmem();
|
||
|
first_time = 0;
|
||
|
} else
|
||
|
- data = __get_free_pages(GFP_KERNEL, get_order(sz));
|
||
|
+ data = (void *)__get_free_pages(GFP_KERNEL,
|
||
|
+ get_order(sz));
|
||
|
if (!data)
|
||
|
panic("Could not allocate MCA memory for cpu %d\n",
|
||
|
cpu);
|