git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Get rid of compat.h, compat26.h in favor of modern approach.
[sliver-openvswitch.git]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
linux
/
slab.h
diff --git
a/datapath/linux-2.6/compat-2.6/include/linux/slab.h
b/datapath/linux-2.6/compat-2.6/include/linux/slab.h
index
5c54c18
..
7e9c3f4
100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/include/linux/slab.h
+++ b/
datapath/linux-2.6/compat-2.6/include/linux/slab.h
@@
-7,4
+7,8
@@
extern void *kmemdup(const void *src, size_t len, gfp_t gfp);
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+#define kmem_cache_create(n, s, a, f, c) kmem_cache_create(n, s, a, f, c, NULL)
+#endif
+
#endif