aboutsummaryrefslogtreecommitdiffstats
path: root/include/compat/linux/compat-2.6.20.h
blob: 14579e29cf8e0ffc5ac8493f3db3edd65cea51af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef LINUX_26_20_COMPAT_H
#define LINUX_26_20_COMPAT_H

#include <linux/version.h>

/* Compat work for 2.6.20 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20))

#include <linux/workqueue.h>

typedef void (*work_func_t)(struct work_struct *work);
typedef void (*compat_work_func_t)(void *work);
static inline void (INIT_WORK)(struct work_struct *work, work_func_t func)
{
	INIT_WORK(work, (compat_work_func_t)func, work);
}
#undef INIT_WORK

#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)) */

#endif /* LINUX_26_20_COMPAT_H */