[POWERPC] Add error return from htab_remove_mapping()

If the platform doesn't support hpte_removebolted(), gracefully
return failure rather than success.

Signed-off-by: Badari Pulavarty <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
Badari Pulavarty 2008-03-28 11:37:21 +11:00 • committed by Paul Mackerras
commit 52db9b4426
2 changed files with 10 additions and 6 deletions

View file

@ -15,7 +15,7 @@
#ifdef CONFIG_MEMORY_HOTPLUG
extern void create_section_mapping(unsigned long start, unsigned long end);
extern void remove_section_mapping(unsigned long start, unsigned long end);
extern int remove_section_mapping(unsigned long start, unsigned long end);
#ifdef CONFIG_NUMA
extern int hot_add_scn_to_nid(unsigned long scn_addr);
#else