diff options
author | Andrew Morton <akpm@osdl.org> | 2006-04-20 16:41:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-04-20 16:41:18 -0400 |
commit | 1c97b73e89af9a20e99450c554cffdd9327e827a (patch) | |
tree | 79578b028a0dd2303e150c55b841f2e32ad1388c /arch | |
parent | 4b91ff4f425edb875c8e071d19a2417d23c578a4 (diff) |
[ARM] add_memory() build fix
This is back again. Offending patch is x86_64-mm-hotadd-reserve.patch
arch/arm/kernel/setup.c:435: error: conflicting types for 'add_memory'
include/linux/memory_hotplug.h:102: error: previous declaration of 'add_memory' was here
arch/arm/kernel/setup.c:435: error: conflicting types for 'add_memory'
include/linux/memory_hotplug.h:102: error: previous declaration of 'add_memory' was here
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 8cff73e668b3..673cab2ff65a 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -407,7 +407,7 @@ static void __init early_initrd(char **p) | |||
407 | } | 407 | } |
408 | __early_param("initrd=", early_initrd); | 408 | __early_param("initrd=", early_initrd); |
409 | 409 | ||
410 | static void __init add_memory(unsigned long start, unsigned long size) | 410 | static void __init arm_add_memory(unsigned long start, unsigned long size) |
411 | { | 411 | { |
412 | /* | 412 | /* |
413 | * Ensure that start/size are aligned to a page boundary. | 413 | * Ensure that start/size are aligned to a page boundary. |
@@ -445,7 +445,7 @@ static void __init early_mem(char **p) | |||
445 | if (**p == '@') | 445 | if (**p == '@') |
446 | start = memparse(*p + 1, p); | 446 | start = memparse(*p + 1, p); |
447 | 447 | ||
448 | add_memory(start, size); | 448 | arm_add_memory(start, size); |
449 | } | 449 | } |
450 | __early_param("mem=", early_mem); | 450 | __early_param("mem=", early_mem); |
451 | 451 | ||
@@ -587,7 +587,7 @@ static int __init parse_tag_mem32(const struct tag *tag) | |||
587 | tag->u.mem.start, tag->u.mem.size / 1024); | 587 | tag->u.mem.start, tag->u.mem.size / 1024); |
588 | return -EINVAL; | 588 | return -EINVAL; |
589 | } | 589 | } |
590 | add_memory(tag->u.mem.start, tag->u.mem.size); | 590 | arm_add_memory(tag->u.mem.start, tag->u.mem.size); |
591 | return 0; | 591 | return 0; |
592 | } | 592 | } |
593 | 593 | ||