From: Andrew Morton Cc: Yasonori Goto Cc: KAMEZAWA Hiroyuki Cc: Dave Hansen Cc: "Brown, Len" Signed-off-by: Andrew Morton --- include/linux/memory_hotplug.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff -puN include/linux/memory_hotplug.h~pgdat-allocation-for-new-node-add-generic-alloc-node_data-tidy include/linux/memory_hotplug.h --- devel/include/linux/memory_hotplug.h~pgdat-allocation-for-new-node-add-generic-alloc-node_data-tidy 2006-04-20 16:06:31.000000000 -0700 +++ devel-akpm/include/linux/memory_hotplug.h 2006-04-20 16:06:31.000000000 -0700 @@ -75,16 +75,16 @@ static inline int memofy_add_physaddr_to #ifdef CONFIG_HAVE_ARCH_NODEDATA_EXTENSION /* - * For supporint node-hotadd, we have to allocate new pgdat. + * For supporting node-hotadd, we have to allocate a new pgdat. * - * If an arch have generic style NODE_DATA(), - * node_data[nid] = kzalloc() works well . But it depends on each arch. + * If an arch has generic style NODE_DATA(), + * node_data[nid] = kzalloc() works well. But it depends on the architecture. * * In general, generic_alloc_nodedata() is used. * Now, arch_free_nodedata() is just defined for error path of node_hot_add. * */ -static inline pg_data_t * arch_alloc_nodedata(int nid) +static inline pg_data_t *arch_alloc_nodedata(int nid) { return NULL; } @@ -106,7 +106,7 @@ static inline void arch_free_nodedata(pg */ #define generic_alloc_nodedata(nid) \ ({ \ - (pg_data_t *)kzalloc(sizeof(pg_data_t), GFP_KERNEL); \ + kzalloc(sizeof(pg_data_t), GFP_KERNEL); \ }) /* * This definition is just for error path in node hotadd. _