Skip to content

Commit

Permalink
[POWERPC] htab_remove_mapping is only used by MEMORY_HOTPLUG
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Apr 7, 2008
1 parent c6d4d5a commit ae86f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/mm/hash_utils_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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,
Expand Down

0 comments on commit ae86f00

Please sign in to comment.