scst.h: Avoid that including scst.h before <linux/slab.h> triggers a warning about a preprocessor symbol redefinition.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3441 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-05-08 11:55:43 +00:00
parent 33caaa6ee7
commit e47c6eb768

View File

@@ -536,7 +536,7 @@ enum scst_exec_context {
/*************************************************************
** Kernel cache creation helper
*************************************************************/
#ifndef KMEM_CACHE
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
#define KMEM_CACHE(__struct, __flags) kmem_cache_create(#__struct,\
sizeof(struct __struct), __alignof__(struct __struct),\
(__flags), NULL, NULL)