diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-03-27 01:08:57 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-06 23:49:25 -0400 |
commit | ae86f0088de389baa448a42d040ab58d5c759bef (patch) | |
tree | 64321559e7d1b95530b201cdb81e8985f9493511 | |
parent | c6d4d5a8a83e4a564bcf233fdd565183c33df5d1 (diff) |
[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>
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 2f3dfcc7cdd3..2b5a399f6fa6 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -192,6 +192,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend, | |||
192 | return ret < 0 ? ret : 0; | 192 | return ret < 0 ? ret : 0; |
193 | } | 193 | } |
194 | 194 | ||
195 | #ifdef CONFIG_MEMORY_HOTPLUG | ||
195 | static int htab_remove_mapping(unsigned long vstart, unsigned long vend, | 196 | static int htab_remove_mapping(unsigned long vstart, unsigned long vend, |
196 | int psize, int ssize) | 197 | int psize, int ssize) |
197 | { | 198 | { |
@@ -212,6 +213,7 @@ static int htab_remove_mapping(unsigned long vstart, unsigned long vend, | |||
212 | 213 | ||
213 | return 0; | 214 | return 0; |
214 | } | 215 | } |
216 | #endif /* CONFIG_MEMORY_HOTPLUG */ | ||
215 | 217 | ||
216 | static int __init htab_dt_scan_seg_sizes(unsigned long node, | 218 | static int __init htab_dt_scan_seg_sizes(unsigned long node, |
217 | const char *uname, int depth, | 219 | const char *uname, int depth, |