4 #include <linux/version.h>
6 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23)
7 /*----------------------------------------------------------------------------
8 * In 2.6.24, a namespace argument became required for dev_get_by_name. */
11 #define dev_get_by_name(net, name) \
12 dev_get_by_name((name))
14 #endif /* linux kernel <= 2.6.23 */
17 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
18 /*----------------------------------------------------------------------------
19 * In 2.6.23, the last argument was dropped from kmem_cache_create. */
20 #define kmem_cache_create(n, s, a, f, c) \
21 kmem_cache_create((n), (s), (a), (f), (c), NULL)
23 #endif /* linux kernel <= 2.6.22 */
25 #endif /* compat26.h */