1
Description: Fix compilation of slamr module with 2.6.36
2
ioctl got deprecated since kernel 2.6.36
3
Origin: http://bugs.gentoo.org/attachment.cgi?id=259296
4
Bug-Gentoo: http://bugs.gentoo.org/show_bug.cgi?id=302456
5
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613906
6
Bug-Ubuntu: https://bugs.launchpad.net/bugs/737650
7
--- a/drivers/amrmo_init.c 2011-01-06 20:12:59.000000000 +0100
8
+++ b/drivers/amrmo_init.c 2011-01-06 20:12:34.000000000 +0100
9
@@ -437,11 +437,11 @@ static unsigned int amrmo_poll(struct fi
13
-static int amrmo_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long parg)
14
+static long amrmo_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long parg)
16
struct amrmo_struct *amrmo = (struct amrmo_struct *)file->private_data;
23
@@ -514,7 +514,7 @@ static struct file_operations amrmo_fops
27
- .ioctl = amrmo_ioctl,
28
+ .unlocked_ioctl = amrmo_unlocked_ioctl,
30
.release = amrmo_release,