diff options
Diffstat (limited to 'include/linux/node.h')
-rw-r--r-- | include/linux/node.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/node.h b/include/linux/node.h index 41f171861dcc..6d336e38d155 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
@@ -32,9 +32,11 @@ extern struct node *node_devices[]; | |||
32 | typedef void (*node_registration_func_t)(struct node *); | 32 | typedef void (*node_registration_func_t)(struct node *); |
33 | 33 | ||
34 | #if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) && defined(CONFIG_NUMA) | 34 | #if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) && defined(CONFIG_NUMA) |
35 | extern int link_mem_sections(int nid, unsigned long start_pfn, unsigned long nr_pages); | 35 | extern int link_mem_sections(int nid, unsigned long start_pfn, |
36 | unsigned long nr_pages, bool check_nid); | ||
36 | #else | 37 | #else |
37 | static inline int link_mem_sections(int nid, unsigned long start_pfn, unsigned long nr_pages) | 38 | static inline int link_mem_sections(int nid, unsigned long start_pfn, |
39 | unsigned long nr_pages, bool check_nid) | ||
38 | { | 40 | { |
39 | return 0; | 41 | return 0; |
40 | } | 42 | } |
@@ -57,7 +59,7 @@ static inline int register_one_node(int nid) | |||
57 | if (error) | 59 | if (error) |
58 | return error; | 60 | return error; |
59 | /* link memory sections under this node */ | 61 | /* link memory sections under this node */ |
60 | error = link_mem_sections(nid, pgdat->node_start_pfn, pgdat->node_spanned_pages); | 62 | error = link_mem_sections(nid, pgdat->node_start_pfn, pgdat->node_spanned_pages, true); |
61 | } | 63 | } |
62 | 64 | ||
63 | return error; | 65 | return error; |