2 kernel/zaptel-base.c | 18 ++++++++++++++++++
3 1 file changed, 18 insertions(+)
5 --- zaptel-1.4.12.1.orig/kernel/zaptel-base.c
6 +++ zaptel-1.4.12.1/kernel/zaptel-base.c
7 @@ -5181,6 +5181,20 @@ static int zt_ioctl(struct inode *inode,
8 return zt_chan_ioctl(inode, file, cmd, data, unit);
11 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
12 +#include <linux/smp_lock.h>
13 +static long zt_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long data)
18 + ret = zt_ioctl(file->f_mapping->host, file, cmd, data);
25 int zt_register(struct zt_span *span, int prefmaster)
28 @@ -7632,7 +7646,11 @@ static struct file_operations zt_fops =
32 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
33 + unlocked_ioctl: zt_ioctl_unlocked,