dect
/
linux-2.6
Archived
13
0
Fork 0

[POWERPC] htab_remove_mapping is only used by MEMORY_HOTPLUG

This eliminates a warning in builds that don't define
CONFIG_MEMORY_HOTPLUG.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell 2008-03-27 16:08:57 +11:00 committed by Paul Mackerras
parent c6d4d5a8a8
commit ae86f0088d
1 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
return ret < 0 ? ret : 0;
}
#ifdef CONFIG_MEMORY_HOTPLUG
static int htab_remove_mapping(unsigned long vstart, unsigned long vend,
int psize, int ssize)
{
@ -212,6 +213,7 @@ static int htab_remove_mapping(unsigned long vstart, unsigned long vend,
return 0;
}
#endif /* CONFIG_MEMORY_HOTPLUG */
static int __init htab_dt_scan_seg_sizes(unsigned long node,
const char *uname, int depth,