diff options
Diffstat (limited to 'include/asm-powerpc/sparsemem.h')
-rw-r--r-- | include/asm-powerpc/sparsemem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-powerpc/sparsemem.h b/include/asm-powerpc/sparsemem.h index ba1b34fdb967..38b1ea3b58fd 100644 --- a/include/asm-powerpc/sparsemem.h +++ b/include/asm-powerpc/sparsemem.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #ifndef _ASM_POWERPC_SPARSEMEM_H | 1 | #ifndef _ASM_POWERPC_SPARSEMEM_H |
2 | #define _ASM_POWERPC_SPARSEMEM_H 1 | 2 | #define _ASM_POWERPC_SPARSEMEM_H 1 |
3 | #ifdef __KERNEL__ | ||
3 | 4 | ||
4 | #ifdef CONFIG_SPARSEMEM | 5 | #ifdef CONFIG_SPARSEMEM |
5 | /* | 6 | /* |
@@ -13,8 +14,17 @@ | |||
13 | 14 | ||
14 | #ifdef CONFIG_MEMORY_HOTPLUG | 15 | #ifdef CONFIG_MEMORY_HOTPLUG |
15 | extern void create_section_mapping(unsigned long start, unsigned long end); | 16 | extern void create_section_mapping(unsigned long start, unsigned long end); |
17 | #ifdef CONFIG_NUMA | ||
18 | extern int hot_add_scn_to_nid(unsigned long scn_addr); | ||
19 | #else | ||
20 | static inline int hot_add_scn_to_nid(unsigned long scn_addr) | ||
21 | { | ||
22 | return 0; | ||
23 | } | ||
24 | #endif /* CONFIG_NUMA */ | ||
16 | #endif /* CONFIG_MEMORY_HOTPLUG */ | 25 | #endif /* CONFIG_MEMORY_HOTPLUG */ |
17 | 26 | ||
18 | #endif /* CONFIG_SPARSEMEM */ | 27 | #endif /* CONFIG_SPARSEMEM */ |
19 | 28 | ||
29 | #endif /* __KERNEL__ */ | ||
20 | #endif /* _ASM_POWERPC_SPARSEMEM_H */ | 30 | #endif /* _ASM_POWERPC_SPARSEMEM_H */ |