Skip to contentSkip to conversation

SLOB=y && SMP=y fix

PATCH In review Ingo Molnar 2 participants 2 messages Feb 8, 2006 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SLOB=y && SMP=y fix

fix CONFIG_SLOB=y (when CONFIG_SMP=y): get rid of the 'align' parameter from its __alloc_percpu() implementation. Boot-tested on x86.

----

 mm/slob.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
mm/slob.c +1 -1
Index: linux/mm/slob.c
===================================================================
@@ -336,7 +336,7 @@ EXPORT_SYMBOL(slab_reclaim_pages);
 
 #ifdef CONFIG_SMP
 
-void *__alloc_percpu(size_t size, size_t align)
+void *__alloc_percpu(size_t size)
 {
 	int i;
 	struct percpu_data *pdata = kmalloc(sizeof (*pdata), GFP_KERNEL);