Commit 85786b02 authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] ppc64: __make_room() warning fix

arch/ppc64/kernel/prom.c: In function `__make_room':
arch/ppc64/kernel/prom.c:1415: warning: unused variable `offset'
Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 357fbac9
...@@ -1412,11 +1412,11 @@ static void __init *__make_room(unsigned long *mem_start, unsigned long *mem_end ...@@ -1412,11 +1412,11 @@ static void __init *__make_room(unsigned long *mem_start, unsigned long *mem_end
unsigned long needed, unsigned long align) unsigned long needed, unsigned long align)
{ {
void *ret; void *ret;
unsigned long offset = reloc_offset();
*mem_start = ALIGN(*mem_start, align); *mem_start = ALIGN(*mem_start, align);
if (*mem_start + needed > *mem_end) { if (*mem_start + needed > *mem_end) {
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
unsigned long offset = reloc_offset();
/* FIXME: Apple OF doesn't map unclaimed mem. If this /* FIXME: Apple OF doesn't map unclaimed mem. If this
* ever happened on G5, we'd need to fix. */ * ever happened on G5, we'd need to fix. */
unsigned long initrd_len; unsigned long initrd_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment