From 5c52f0e50e71cde13ce961521971e6e7a87acf44 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 22 Dec 2009 17:50:25 +0000 Subject: voicebus, wcte12xp: Only define SLAB_STORE_USER when CONFIG_SLUB is defined. On 2.6.22, there is was a bug in the SLUB allocator that required defining SLAB_STORE_USER, however this setting is only valid when CONFIG_SLUB is defined and not when using the previous slab allocator. DAHDI-424. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7722 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/voicebus/voicebus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/voicebus') diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c index 70a1128..b77ccdb 100644 --- a/drivers/dahdi/voicebus/voicebus.c +++ b/drivers/dahdi/voicebus/voicebus.c @@ -1733,7 +1733,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize, const char *board_name, * this driver. */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23) vb->buffer_cache = kmem_cache_create(board_name, vb->framesize, 0, -#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 22) +#if defined(CONFIG_SLUB) && (LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 22)) SLAB_HWCACHE_ALIGN | SLAB_STORE_USER, NULL, NULL); #else SLAB_HWCACHE_ALIGN, NULL, NULL); -- cgit v1.2.3