Commit ae86f008 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c6d4d5a8
...@@ -192,6 +192,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend, ...@@ -192,6 +192,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
return ret < 0 ? ret : 0; return ret < 0 ? ret : 0;
} }
#ifdef CONFIG_MEMORY_HOTPLUG
static int htab_remove_mapping(unsigned long vstart, unsigned long vend, static int htab_remove_mapping(unsigned long vstart, unsigned long vend,
int psize, int ssize) int psize, int ssize)
{ {
...@@ -212,6 +213,7 @@ static int htab_remove_mapping(unsigned long vstart, unsigned long vend, ...@@ -212,6 +213,7 @@ static int htab_remove_mapping(unsigned long vstart, unsigned long vend,
return 0; return 0;
} }
#endif /* CONFIG_MEMORY_HOTPLUG */
static int __init htab_dt_scan_seg_sizes(unsigned long node, static int __init htab_dt_scan_seg_sizes(unsigned long node,
const char *uname, int depth, const char *uname, int depth,
......
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